Update upstream statuses again
[gentoo-interactive-fiction.git] / games-engines / fizmo / files / fizmo-0.6.0-no-libxml2.patch
blob5908ddb6bf06fd4186462f0b771b4778d1022cd7
1 Source: dleverton
2 Upstream: accepted for next release
3 Reason: don't segfault if Babel support is disabled
5 --- fizmo-0.6.0/src/fizmo/babel.c~ 2009-03-28 17:56:58.000000000 +0000
6 +++ fizmo-0.6.0/src/fizmo/babel.c 2009-03-28 17:59:33.000000000 +0000
7 @@ -566,6 +566,8 @@
8 if ((out = fopen(filename, "w")) == NULL)
9 return;
11 + if (babel)
12 + {
13 for (i=0; i<babel->nof_entries; i++)
15 quoted_filename = quote_special_chars(babel->entries[i]->filename);
16 @@ -573,6 +575,7 @@
17 babel->entries[i]->filename);
18 free(quoted_filename);
20 + }
22 fclose(out);
24 @@ -722,7 +725,7 @@
26 abort_timestamp_input();
28 - if (nof_babel_timestamp_entries != babel->nof_entries)
29 + if (nof_babel_timestamp_entries != (babel ? babel->nof_entries : 0))
31 //printf("Babel-lists have not equal size.\n");
32 return true;