openbsd-ports/graphics/gtkam/patches/patch-src_gtkam-save_c
ajacoutot aefb100529 - update to gtkam-0.1.14 (libgphoto-2.4.0 compatible)
- take maintainership (former maintainer timeout)

ok espie@
2007-10-22 20:36:15 +00:00

18 lines
705 B
Plaintext

$OpenBSD: patch-src_gtkam-save_c,v 1.2 2007/10/22 20:36:15 ajacoutot Exp $
--- src/gtkam-save.c.orig Thu Dec 14 19:38:12 2006
+++ src/gtkam-save.c Sun Oct 21 15:13:25 2007
@@ -167,9 +167,11 @@ default_numbering_start(const GtkamSave *save)
gchar *tail,*prefix;
int max = 1;
int plen, current;
+ gchar *filename ;
- if (!(dir = g_dir_open (gtk_file_chooser_get_filename (
- GTK_FILE_CHOOSER (save)) , 0, NULL))) return 1;
+ filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (save));
+ if (filename == NULL) return 1;
+ if (!(dir = g_dir_open (filename , 0, NULL))) return 1;
prefix = g_strdup (gtk_entry_get_text
(GTK_ENTRY (save->priv->prefix_entry)));
plen = strlen (prefix);