Changeset: 260ac3b9c481 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=260ac3b9c481
Modified Files:
        clients/src/mapiclient/msqldump.c
Branch: Oct2010
Log Message:

Check for error.


diffs (23 lines):

diff -r a50746e60359 -r 260ac3b9c481 clients/src/mapiclient/msqldump.c
--- a/clients/src/mapiclient/msqldump.c Thu Sep 09 13:06:07 2010 +0200
+++ b/clients/src/mapiclient/msqldump.c Thu Sep 09 13:11:53 2010 +0200
@@ -232,6 +232,10 @@
        mapi_cache_limit(mid, 10000);
 
        out = file_wastream(stdout, "stdout");
+       if (out == NULL) {
+               fprintf(stderr, "failed to allocate stream\n");
+               exit(2);
+       }
        if (!quiet) {
                char buf[27];
                time_t t = time(0);
@@ -248,7 +252,7 @@
 #endif
                if ((p = strrchr(buf, '\n')) != NULL)
                        *p = 0;
-               mnstr_printf(out,"-- msqldump %s %s\n",
+               mnstr_printf(out, "-- msqldump %s %s\n",
                             functions ? "functions" : "tables", buf);
                dump_version(mid, out, "--");
        }
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to