aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-06-15 19:22:38 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-15 19:22:38 -0400
commitebad8f1926624b162940d5bf527a3f8ea0de89a1 (patch)
tree5c9983fc78c15c91ad287957c5e51e9123cf081c
parentef643a903732e1c27ceac0cd3505e5ffeb714f17 (diff)
kernelshark: Fix bad loading of capture settings
Add a "return" if the file is not found in load capture settings. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-capture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace-capture.c b/trace-capture.c
index 27ae757..d7133ba 100644
--- a/trace-capture.c
+++ b/trace-capture.c
@@ -912,6 +912,7 @@ static void load_settings_clicked(GtkWidget *widget, gpointer data)
912 if (!handle) { 912 if (!handle) {
913 warning("Could not open %s", filename); 913 warning("Could not open %s", filename);
914 g_free(filename); 914 g_free(filename);
915 return;
915 } 916 }
916 917
917 g_free(filename); 918 g_free(filename);