return string in env would be better

This commit is contained in:
云风
2014-03-01 16:26:14 +08:00
parent 89b63126db
commit 1a7d960a36

View File

@@ -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;
}