Changeset: 215c8aa77219 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=215c8aa77219
Modified Files:
        monetdb5/optimizer/opt_wrapper.c
Branch: Feb2013
Log Message:

Simplify exception throwing with arguments.


diffs (14 lines):

diff --git a/monetdb5/optimizer/opt_wrapper.c b/monetdb5/optimizer/opt_wrapper.c
--- a/monetdb5/optimizer/opt_wrapper.c
+++ b/monetdb5/optimizer/opt_wrapper.c
@@ -155,9 +155,7 @@ str OPTwrapper (Client cntxt, MalBlkPtr 
                s= findSymbol(cntxt->nspace, 
putName(modnme,strlen(modnme)),putName(fcnnme,strlen(fcnnme)));
 
                if( s == NULL) {
-                       char buf[1024];
-                       snprintf(buf,1024, "%s.%s",modnme,fcnnme);
-                       throw(MAL, optimizer, RUNTIME_OBJECT_UNDEFINED ":%s", 
buf);
+                       throw(MAL, optimizer, RUNTIME_OBJECT_UNDEFINED 
":%s.%s", modnme, fcnnme);
                }
                mb = s->def;
                stk= 0;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to