Update of /cvsroot/monetdb/clients/src/mapiclient
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20197
Modified Files:
MapiClient.mx
Log Message:
Guard against setFormatter being called with output as second arg.
Index: MapiClient.mx
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapiclient/MapiClient.mx,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- MapiClient.mx 21 Dec 2007 14:55:30 -0000 1.100
+++ MapiClient.mx 8 Jan 2008 13:24:14 -0000 1.101
@@ -847,9 +847,11 @@
{
if (mode == XQUERY) {
mapi_output(mid, s);
- if (output != NULL)
- free(output);
- output = strdup(s);
+ if (s != output) {
+ if (output != NULL)
+ free(output);
+ output = strdup(s);
+ }
} else if (strcmp(s, "sql") == 0)
formatter = TABLEformatter;
else if (strcmp(s, "csv") == 0)
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins