mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +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 (str == NULL) {
|
||||||
if (opt) {
|
if (opt) {
|
||||||
skynet_setenv(key, opt);
|
skynet_setenv(key, opt);
|
||||||
|
opt = skynet_getenv(key);
|
||||||
}
|
}
|
||||||
return opt;
|
return opt;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user