Changeset: 2fd7f1f8ebca for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2fd7f1f8ebca
Modified Files:
        clients/mapiclient/eventparser.c
Branch: default
Log Message:

after a strdup(), we need to check whether its result is NULL, not its argument 
...


diffs (12 lines):

diff --git a/clients/mapiclient/eventparser.c b/clients/mapiclient/eventparser.c
--- a/clients/mapiclient/eventparser.c
+++ b/clients/mapiclient/eventparser.c
@@ -441,7 +441,7 @@ eventparser(char *row, EventRecord *ev)
                *w = 0;
        if( ev->state == MDB_SYSTEM){
                monetdb_characteristics = strdup(ev->stmt);
-               if( ev->stmt == NULL){
+               if( monetdb_characteristics == NULL){
                        fprintf(stderr,"Could not allocate 
monetdb_characteristics memory\n");
                        exit(-1);
                }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to