mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
return string in env would be better
This commit is contained in:
@@ -39,6 +39,7 @@ optstring(const char *key,const char * opt) {
|
||||
if (str == NULL) {
|
||||
if (opt) {
|
||||
skynet_setenv(key, opt);
|
||||
opt = skynet_getenv(key);
|
||||
}
|
||||
return opt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user