Enlightenment CVS committal

Author  : urandom
Project : e17
Module  : apps/edje_viewer

Dir     : e17/apps/edje_viewer/src/bin


Modified Files:
        etk_gui.c 


Log Message:
fix segfault on empty file selection 

===================================================================
RCS file: /cvs/e/e17/apps/edje_viewer/src/bin/etk_gui.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- etk_gui.c   14 Jul 2007 00:14:54 -0000      1.21
+++ etk_gui.c   14 Aug 2007 16:21:31 -0000      1.22
@@ -510,8 +510,9 @@
 
    dir = etk_filechooser_widget_current_folder_get(
           ETK_FILECHOOSER_WIDGET(gui->fm_chooser));
-   file = etk_filechooser_widget_selected_file_get(
-          ETK_FILECHOOSER_WIDGET(gui->fm_chooser));
+   if (!(file = etk_filechooser_widget_selected_file_get(
+          ETK_FILECHOOSER_WIDGET(gui->fm_chooser)))) return;
+
    gui->path = strdup(dir);
    gui->path = strcat(gui->path, "/");
    gui->path = strcat(gui->path, file);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to