diff options
author | marcus <marcus@FreeBSD.org> | 2005-04-24 12:27:21 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-04-24 12:27:21 +0800 |
commit | ff9809bb3f23d01f280a8358dc16539f3dfd6c71 (patch) | |
tree | 73d7d1a2f43c40c48300398edb259dd56df910eb | |
parent | 15ec311068d89742e9a83186b6996fa85f395eb1 (diff) | |
download | freebsd-ports-gnome-ff9809bb3f23d01f280a8358dc16539f3dfd6c71.tar.gz freebsd-ports-gnome-ff9809bb3f23d01f280a8358dc16539f3dfd6c71.tar.zst freebsd-ports-gnome-ff9809bb3f23d01f280a8358dc16539f3dfd6c71.zip |
Fix build on 4.X.
Reported by: pointyhat via kris
-rw-r--r-- | games/gcompris2/files/patch-src_gcompris_images_selector.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/games/gcompris2/files/patch-src_gcompris_images_selector.c b/games/gcompris2/files/patch-src_gcompris_images_selector.c new file mode 100644 index 000000000000..527a73aff00d --- /dev/null +++ b/games/gcompris2/files/patch-src_gcompris_images_selector.c @@ -0,0 +1,31 @@ +--- src/gcompris/images_selector.c.orig Sun Apr 24 00:24:43 2005 ++++ src/gcompris/images_selector.c Sun Apr 24 00:26:06 2005 +@@ -609,7 +609,7 @@ item_event_scroll(GnomeCanvasItem *item, + void + parseImage (xmlDocPtr doc, xmlNodePtr cur) { + gchar *imageSetName = NULL; +- gchar *filename, *pathname, *absolutepath;; ++ gchar *filename, *pathname, *absolutepath; + GList *imageList = NULL; /* List of Images */ + gboolean havePathName = FALSE, lsdir = FALSE; + gchar *type = NULL; +@@ -793,6 +793,9 @@ read_dataset_directory(gchar *dataset_di + gchar *fname, *absolute_fname; + + while (fname = g_dir_read_name(dataset_directory)) { ++ /* pointer to the new doc */ ++ xmlDocPtr doc; ++ + /* skip files without ".xml" */ + if (!g_str_has_suffix (fname,".xml")){ + printf("skipping file not in .xml : %s\n", fname); +@@ -806,9 +809,6 @@ read_dataset_directory(gchar *dataset_di + continue; + + /* parse the new file and put the result into newdoc */ +- +- /* pointer to the new doc */ +- xmlDocPtr doc; + + doc = xmlParseFile(absolute_fname); + |