diff options
Diffstat (limited to 'app-office/grisbi/files/0.8.2-0002-fixes-a-crash-when-importing-a-file-without-extensio.patch')
-rw-r--r-- | app-office/grisbi/files/0.8.2-0002-fixes-a-crash-when-importing-a-file-without-extensio.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app-office/grisbi/files/0.8.2-0002-fixes-a-crash-when-importing-a-file-without-extensio.patch b/app-office/grisbi/files/0.8.2-0002-fixes-a-crash-when-importing-a-file-without-extensio.patch deleted file mode 100644 index 8e8ae17aff24..000000000000 --- a/app-office/grisbi/files/0.8.2-0002-fixes-a-crash-when-importing-a-file-without-extensio.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 3aeefce5f46ae6989cc6a9c2569af895a9a00659 Mon Sep 17 00:00:00 2001 -From: pbiava <pierre.biava@nerim.net> -Date: Thu, 24 Feb 2011 23:07:02 +0100 -Subject: [PATCH 2/5] fixes a crash when importing a file without extension - ---- - src/import.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -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 */ --- -1.7.4 - |