Fix for 2f1eda3f0.
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 4 Jul 2017 10:07:02 +0000 (12:07 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 4 Jul 2017 10:07:02 +0000 (12:07 +0200)
src/plugins/rssyl/strutils.c

index af20604c067130879df05191c820e0560ad0b5ff..b2c27149abf423ea2718341ed7cf90ff0c1e7b1c 100644 (file)
@@ -106,7 +106,7 @@ gchar *rssyl_strreplace(gchar *source, gchar *pattern,
        /* We broke off the above cycle because remaining text was not
         * long enough for the pattern, so now we need to append the
         * remaining text to the new string. */
-       if (c != '\0') {
+       if (*c != '\0') {
                strncat(new, c, final_length - strlen(new));
        }