aboutsummaryrefslogtreecommitdiffstats
path: root/trace-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-dialog.c')
-rw-r--r--trace-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trace-dialog.c b/trace-dialog.c
index a19813b..a87118c 100644
--- a/trace-dialog.c
+++ b/trace-dialog.c
@@ -104,6 +104,7 @@ void warning(const char *fmt, ...)
104{ 104{
105 GString *str; 105 GString *str;
106 va_list ap; 106 va_list ap;
107 int err;
107 108
108 if (alt_warning) { 109 if (alt_warning) {
109 va_start(ap, fmt); 110 va_start(ap, fmt);
@@ -119,6 +120,9 @@ void warning(const char *fmt, ...)
119 return; 120 return;
120 } 121 }
121 122
123 err = errno;
124 errno = 0;
125
122 str = g_string_new(""); 126 str = g_string_new("");
123 127
124 va_start(ap, fmt); 128 va_start(ap, fmt);