Diff between 14feab22e601947ddd29ee9b5933d11725e1b691 and ee2520cb3d18aad93525919e03451ec85e3cc64b

Changed Files

File Additions Deletions Status
src/shared/util.c +4 -4 modified

Full Patch

diff --git a/src/shared/util.c b/src/shared/util.c
index 986e2b2..43a81af 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -1010,18 +1010,18 @@ int strsuffix(const char *str, const char *suffix)
 	int suffix_len;
 
 	if (!str || !suffix)
-		return false;
+		return -1;
 
 	if (str[0] == '\0' && suffix[0] != '\0')
-		return false;
+		return -1;
 
 	if (suffix[0] == '\0' && str[0] != '\0')
-		return false;
+		return -1;
 
 	len = strlen(str);
 	suffix_len = strlen(suffix);
 	if (len < suffix_len)
-		return false;
+		return -1;
 
 	return strncmp(str + len - suffix_len, suffix, suffix_len);
 }