Set global variable for checking initailize earlier.
Change-Id: I8585a546992f41f6a07806006afff577c1a9b13a
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
return; /* already initialized */
}
+ nb_debug_options = 0;
+
#if 0
strcpy(debugchfile, get_etc_path());
strcat(debugchfile, "/DEBUGCH");
debug = getenv("DEBUGCH");
} else {
if ((tmp = (char *)malloc(1024 + 1)) == NULL){
+ nb_debug_options = -1;
fclose(fp);
return;
}
if (tmp != NULL)
free(tmp);
+ nb_debug_options = -1;
return;
}
const char* str = fgets(tmp, 1024, fp);
exit(1);
}
}
- nb_debug_options = 0;
}
int dbg_log(enum _debug_class cls, struct _debug_channel *channel,