[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9.0-2-gd35d5ae

Pierre Biava nobody at users.sourceforge.net
Thu Feb 24 23:11:42 CET 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  d35d5aeab5908cab9919d323c98a68cb3f640911 (commit)
      from  c5d96db36c0720d929afa4aaba350c09fdfc2fe5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d35d5aeab5908cab9919d323c98a68cb3f640911
Author: pbiava <pierre.biava at nerim.net>
Date:   Thu Feb 24 23:07:02 2011 +0100

    fixes a crash when importing a file without extension

-----------------------------------------------------------------------

Changes:
diff --git a/src/import.c b/src/import.c
index 44802bf..1d5ceeb 100644
--- a/src/import.c
+++ b/src/import.c
@@ -681,7 +681,7 @@ gboolean import_select_file ( GtkWidget * button, GtkWidget * assistant )
     extension = strrchr ( iterator -> data, '.' );
 
     /* unzip Gnucash file if necessary */
-    if ( strcmp ( extension, ".gnc" ) == 0 )
+    if ( extension && strcmp ( extension, ".gnc" ) == 0 )
         gsb_import_gunzip_file ( iterator -> data );
 
     /* get contents of file */


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list