1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

tests: remove useless variable rc

This commit is contained in:
Sébastien Helleu
2025-05-06 07:13:38 +02:00
parent 8e390939f9
commit 7cae4b276d
+2 -5
View File
@@ -64,7 +64,6 @@ LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
const char *name;
int argc, flags, num_tags, priority;
regex_t regex;
int rc;
str = (char *)malloc (size + 1);
memcpy (str, data, size);
@@ -136,13 +135,11 @@ LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
string_regex_flags (str, 0, NULL);
string_regex_flags (str, 0, &flags);
rc = string_regcomp (&regex, str, REG_ICASE | REG_NOSUB);
if (rc == 0)
if (string_regcomp (&regex, str, REG_ICASE | REG_NOSUB) == 0)
regfree (&regex);
str2 = (char *)malloc (16 + size + 1);
snprintf (str2, 16 + size + 1, "(?ins)%s", str);
rc = string_regcomp (&regex, str2, REG_ICASE | REG_NOSUB);
if (rc == 0)
if (string_regcomp (&regex, str2, REG_ICASE | REG_NOSUB) == 0)
regfree (&regex);
free (str2);