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

Add some asserts to help analyzers.


diffs (22 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -236,6 +236,7 @@ HEAPextend(Heap *h, size_t size, int may
                        int existing = 0;
 
                        assert(h->storage == STORE_MEM);
+                       assert(ext != NULL);
                        h->filename = NULL;
                        /* if the heap file already exists, we want to
                         * switch to STORE_PRIV (copy-on-write memory
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
@@ -1694,6 +1694,7 @@ PCRElike_pcre(int *ret, int *b, str *pat
        str r = MAL_SUCCEED;
        int nr;
 
+       assert(pat && *pat);
        /* no escape, try if a simple list of keywords works */
        if (strlen(*esc) == 0 && (nr = re_simple(*pat)) > 0) {
                RE *re = re_create(*pat, nr);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to