Changeset: e2213d3ccb11 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e2213d3ccb11
Modified Files:
sql/storage/bat/bat_logger.c
Branch: sqlfuncfix
Log Message:
Use strncmp instead of strcmp.
diffs (12 lines):
diff --git a/sql/storage/bat/bat_logger.c b/sql/storage/bat/bat_logger.c
--- a/sql/storage/bat/bat_logger.c
+++ b/sql/storage/bat/bat_logger.c
@@ -2714,7 +2714,7 @@ bl_postversion(void *Store, void *Lg)
const char *e;
if (!strNil(f) &&
(e = strstr(f, "external")) != NULL &&
- e > f && isspace(e[-1]) && isspace(e[8]) &&
strcmp(e + 9, "name") == 0 && isspace(e[13]) &&
+ e > f && isspace(e[-1]) && isspace(e[8]) &&
strncmp(e + 9, "name", 4) == 0 && isspace(e[13]) &&
BUNreplace(b2, o, &(int){FUNC_LANG_MAL}, false)
!= GDK_SUCCEED) {
bat_destroy(b2);
bat_destroy(func_func);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list