Changeset: dfab3b8f7be5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dfab3b8f7be5
Modified Files:
        monetdb5/mal/mal_atom.mx
Branch: default
Log Message:

first assert on pci, then use pci


diffs (21 lines):

diff --git a/monetdb5/mal/mal_atom.mx b/monetdb5/mal/mal_atom.mx
--- a/monetdb5/mal/mal_atom.mx
+++ b/monetdb5/mal/mal_atom.mx
@@ -131,12 +131,14 @@
 }
 
 int malAtomProperty(MalBlkPtr mb, InstrPtr pci){
-       str name= getFunctionId(pci);
-       int tpe = getTypeIndex(getModuleId(pci), (int) 
strlen(getModuleId(pci)), TYPE_any);
+       str name;
+       int tpe;
        (void) mb; /* fool compilers */
+       assert(pci != 0);
+       name = getFunctionId(pci);
+       tpe = getTypeIndex(getModuleId(pci), (int) strlen(getModuleId(pci)), 
TYPE_any);
        if( tpe<0 || tpe>= GDKatomcnt)
                return 0;
-       assert(pci != 0);
        switch(name[0]){
        case 'd': 
                if( idcmp("del",name)==0 && pci->argc==1){
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to