Changeset: 7835159e4c30 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7835159e4c30
Modified Files:
monetdb5/modules/mal/bbp.c
Branch: default
Log Message:
Defensive code
diffs (12 lines):
diff --git a/monetdb5/modules/mal/bbp.c b/monetdb5/modules/mal/bbp.c
--- a/monetdb5/modules/mal/bbp.c
+++ b/monetdb5/modules/mal/bbp.c
@@ -41,7 +41,7 @@ CMDbbpbind(Client cntxt, MalBlkPtr mb, M
(void) mb; /* fool compiler */
lhs = &stk->stk[pci->argv[0]];
name = *getArgReference_str(stk, pci, 1);
- if (isIdentifier(name) < 0)
+ if (name == NULL || isIdentifier(name) < 0)
throw(MAL, "bbp.bind", IDENTIFIER_EXPECTED);
i = BBPindex(name);
if (i == 0)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list