[grisbi-cvs] [SCM] grisbi branch, grisbi-0.8.x, updated. upstream_version_0_8_2-2-g3aeefce

Pierre Biava nobody at users.sourceforge.net
Thu Feb 24 23:11:34 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, grisbi-0.8.x has been updated
       via  3aeefce5f46ae6989cc6a9c2569af895a9a00659 (commit)
      from  3af09ff549167fd9de721f1434422faa9969645d (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 3aeefce5f46ae6989cc6a9c2569af895a9a00659
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