fix warning of scan-build; it doesn't see we would exit() before.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 10 Feb 2013 19:08:18 +0000 (20:08 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 10 Feb 2013 19:08:18 +0000 (20:08 +0100)
citadel/utils/citmail.c

index becdb9abc870b5fdf5a0154d4832d0a2fe273c79..651e561d7391fa269cd71d77cb868fddb3d09418 100644 (file)
@@ -228,7 +228,9 @@ int main(int argc, char **argv) {
                if (debug) fprintf(stderr, "citmail: error parsing hostname\n");
                cleanup(3);
        }
-       *ep = '\0';
+       else
+               *ep = '\0';
+
        strncpy(hostname, sp, sizeof hostname);
 
        snprintf(fromline, sizeof fromline, "From: %s@%s", pw->pw_name, hostname);