diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-11 07:47:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-11 07:47:55 +0200 |
commit | 4faa227a2d180762cf93c70a3e8bf3721baf3456 (patch) | |
tree | 95a744ffb02c9d102e39342b2aba3f1e984f45fc | |
parent | 8ab538c0d9e93250ba2bc5a96fde397efb64f1f5 (diff) | |
download | weechat-4faa227a2d180762cf93c70a3e8bf3721baf3456.zip |
core: check that callback is not NULL in function string_replace_with_callback
-rw-r--r-- | src/core/wee-string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 488d332dc..5cab4a35d 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2661,7 +2661,7 @@ string_replace_with_callback (const char *string, *errors = 0; - if (!string || !prefix || !prefix[0] || !suffix || !suffix[0]) + if (!string || !prefix || !prefix[0] || !suffix || !suffix[0] || !callback) return NULL; length_prefix = strlen (prefix); |