Changeset: f54d902dabdf for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f54d902dabdf
Modified Files:
        monetdb5/modules/mal/pcre.c
Branch: default
Log Message:

PCRElikesubselect2(): fixing "bn" may be used uninitialized in this function 
[-Werror=uninitialized]
and also adding a sanity assertion


diffs (20 lines):

diff --git a/monetdb5/modules/mal/pcre.c b/monetdb5/modules/mal/pcre.c
--- a/monetdb5/modules/mal/pcre.c
+++ b/monetdb5/modules/mal/pcre.c
@@ -1498,7 +1498,7 @@ BATPCREnotilike2(bat *ret, int *bid, str
 str
 PCRElikesubselect2(bat *ret, bat *bid, bat *sid, str *pat, str *esc, bit 
*caseignore, bit *anti)
 {
-       BAT *b, *s = NULL, *bn;
+       BAT *b, *s = NULL, *bn = NULL;
        str res;
        char *ppat = NULL;
 
@@ -1521,6 +1521,7 @@ PCRElikesubselect2(bat *ret, bat *bid, b
        GDKfree(ppat);
        if (res != MAL_SUCCEED)
                return res;
+       assert(bn);
        *ret = bn->batCacheid;
        BBPkeepref(bn->batCacheid);
        return MAL_SUCCEED;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to