Changeset: 0bea3155c3fa for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/0bea3155c3fa
Modified Files:
        monetdb5/mal/mal_prelude.c
Branch: default
Log Message:

No need to call putName twice on the same string.


diffs (12 lines):

diff --git a/monetdb5/mal/mal_prelude.c b/monetdb5/mal/mal_prelude.c
--- a/monetdb5/mal/mal_prelude.c
+++ b/monetdb5/mal/mal_prelude.c
@@ -216,7 +216,7 @@ addFunctions(mel_func *fcn){
                mod = putName(fcn->mod);
                c = getModule(mod);
                if( c == NULL){
-                       if (globalModule(mod=putName(fcn->mod)) == NULL)
+                       if (globalModule(mod) == NULL)
                                throw(LOADER, "addFunctions", "Module %s can 
not be created", fcn->mod);
                        c = getModule(mod);
                }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to