aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-06-16 16:19:19 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-16 16:19:19 -0400
commitb4c297ef8fb24e1b3923a16d3e7267320a3d0f83 (patch)
tree2ee2aa4859f56fc1dd00ab19748c37f23876a072
parent5f1acf8cc910cb6ac1bc1d9bb3548f7e3c7462cd (diff)
kernelshark: Have gui warning reset errno
After printing a gui warning, reset errno. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-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);