fix init error
This commit is contained in:
parent
f10e5bbfd5
commit
4ff502aa4b
@ -93,7 +93,7 @@ g_init(const char* app_name)
|
||||
setlocale(LC_CTYPE, "");
|
||||
if (app_name != 0)
|
||||
{
|
||||
if (app_name[0] == 0)
|
||||
if (app_name[0] != 0)
|
||||
{
|
||||
snprintf(g_temp_base, sizeof(g_temp_base), "/tmp/%s-XXXXXX", app_name);
|
||||
if (mkdtemp(g_temp_base) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user