From 229d1030a9d0db2b4f2b13b9cf164a9b8533f098 Mon Sep 17 00:00:00 2001 From: mis Date: Tue, 25 Jul 2000 09:18:00 +0000 Subject: [PATCH] - cl_build_stanza_array() bugfix Changed files: conflib-cl_build_stanza_array-fix.patch -> 1.1 --- conflib-cl_build_stanza_array-fix.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 conflib-cl_build_stanza_array-fix.patch diff --git a/conflib-cl_build_stanza_array-fix.patch b/conflib-cl_build_stanza_array-fix.patch new file mode 100644 index 0000000..fedbb3c --- /dev/null +++ b/conflib-cl_build_stanza_array-fix.patch @@ -0,0 +1,21 @@ +diff -urN conflib-0.4.5.orig/src/cl_alist.c conflib-0.4.5/src/cl_alist.c +--- conflib-0.4.5.orig/src/cl_alist.c Fri Oct 9 19:03:57 1998 ++++ conflib-0.4.5/src/cl_alist.c Tue Jul 25 10:58:11 2000 +@@ -65,8 +65,15 @@ + int count; + char **array; + +- if (!st) +- return NULL; ++ if (!st) { ++ conf->in_scanmode = 1; ++ cl_getstanza (conf, NULL, NULL, 0, NULL); ++ conf->in_scanmode = 0; ++ st=conf->stanzas; ++ if (!st) ++ return NULL; ++ } ++ + for (count=0,st=conf->stanzas;st!=NULL;st=st->next) + { + if (0==cl_fnmatch_casefold(pattern, st->stanzaname)) -- 2.44.0