Changeset: d112004dc858 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d112004dc858
Modified Files:
clients/mapiclient/stethoscope.c
Branch: default
Log Message:
Fix segvault on missing dbname
diffs (21 lines):
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -198,11 +198,16 @@ main(int argc, char **argv)
it: if -? or --help, exit with 0, else with -1 */
exit(strcmp(argv[optind - 1], "-?") == 0 ||
strcmp(argv[optind - 1], "--help") == 0 ? 0 : -1);
default:
- usageStethoscope();
+ usageStethoscope();
exit(-1);
}
}
+ if(dbname == NULL){
+ usageStethoscope();
+ exit(-1);
+ }
+
if(debug)
printf("stethoscope -d %s -o %s\n",dbname,basefilename);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list