diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-06-16 06:41:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-06-16 06:41:28 +0000 |
commit | ff38fe84761f4de23f6f676a2e67b08e0195e03a (patch) | |
tree | 9c2db56f34650c6fc9e90fc2a952ffecd05fee1c /gtk/main.c | |
parent | 72acd3728ad7c6b6266e39e57aca1be124aa58e6 (diff) |
Don't hand a null pointer to a "%s" format.
svn path=/trunk/; revision=14656
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c index 8e488210cd..c472a8393a 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -2694,7 +2694,10 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level, } /* don't use printf (stdout), as the capture child uses stdout for it's sync_pipe */ - fprintf(stderr, "%02u:%02u:%02u %8s %s %s\n", today->tm_hour, today->tm_min, today->tm_sec, log_domain, level, message); + fprintf(stderr, "%02u:%02u:%02u %8s %s %s\n", + today->tm_hour, today->tm_min, today->tm_sec, + log_domain != NULL ? log_domain : "", + level, message); #ifdef _WIN32 } else { g_log_default_handler(log_domain, log_level, message, user_data); |