Changeset: 0924d3cfe91e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0924d3cfe91e
Modified Files:
        monetdb5/mal/mal_type.mx
Branch: Mar2011
Log Message:

idcmp: don't feed NULL to strcmp

passing NULL to strcmp is already one step too far, we shouldn't have
NULL here at all


diffs (14 lines):

diff --git a/monetdb5/mal/mal_type.mx b/monetdb5/mal/mal_type.mx
--- a/monetdb5/mal/mal_type.mx
+++ b/monetdb5/mal/mal_type.mx
@@ -188,7 +188,9 @@
 inline int
 idcmp(str n, str m)
 {
-       if (* n == * m)
+       assert(n != NULL);
+       assert(m != NULL);
+       if (*n == *m)
                return strcmp(n, m);
        return -1;
 }
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to