From 4ff502aa4be7cefb86c2259d8743f0c8f94dedf5 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Mon, 6 Feb 2012 00:02:00 -0800 Subject: [PATCH] fix init error --- common/os_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/os_calls.c b/common/os_calls.c index c964a9ff..a38eb396 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -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)