diff options
Diffstat (limited to 'common/debug.c')
-rw-r--r-- | common/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/debug.c b/common/debug.c index 6212e71..3492eaa 100644 --- a/common/debug.c +++ b/common/debug.c | |||
@@ -60,7 +60,7 @@ static void debug_print_line(const char *func, const char *file, int line, const | |||
60 | strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); | 60 | strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); |
61 | 61 | ||
62 | /* generate header text */ | 62 | /* generate header text */ |
63 | (void)asprintf(&header, "%s %s:%d %s()", str_time, file, line, func); | 63 | if(asprintf(&header, "%s %s:%d %s()", str_time, file, line, func)<0){} |
64 | free (str_time); | 64 | free (str_time); |
65 | 65 | ||
66 | /* trim ending newlines */ | 66 | /* trim ending newlines */ |
@@ -86,7 +86,7 @@ void debug_info_real(const char *func, const char *file, int line, const char *f | |||
86 | 86 | ||
87 | /* run the real fprintf */ | 87 | /* run the real fprintf */ |
88 | va_start(args, format); | 88 | va_start(args, format); |
89 | (void)vasprintf(&buffer, format, args); | 89 | if(vasprintf(&buffer, format, args)<0){} |
90 | va_end(args); | 90 | va_end(args); |
91 | 91 | ||
92 | debug_print_line(func, file, line, buffer); | 92 | debug_print_line(func, file, line, buffer); |