Changeset: 925e97dc19d5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/925e97dc19d5
Modified Files:
monetdb5/modules/mal/txtsim.c
Branch: Dec2023
Log Message:
Make sure to return a value.
Fixes #7541.
diffs (15 lines):
diff --git a/monetdb5/modules/mal/txtsim.c b/monetdb5/modules/mal/txtsim.c
--- a/monetdb5/modules/mal/txtsim.c
+++ b/monetdb5/modules/mal/txtsim.c
@@ -202,8 +202,10 @@ levenshtein(int *res, const char *x, con
xlen = UTF8_strlen(x);
ylen = UTF8_strlen(y);
- if (xlen == ylen && (strcmp(x, y) == 0))
+ if (xlen == ylen && (strcmp(x, y) == 0)) {
+ *res = 0;
return MAL_SUCCEED;
+ }
column = GDKmalloc((xlen + 1) * sizeof(unsigned int));
if (column == NULL)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]