Coverity:Tainted string: CID 384
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 24 Feb 2012 17:47:30 +0000 (12:47 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 24 Feb 2012 17:47:30 +0000 (12:47 -0500)
* lib-src/movemail.c (main): Sanitize argv[optind] so one can mark as fixed

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/movemail.c

index ba22f92..f80b95d 100644 (file)
@@ -291,6 +291,7 @@ int main(int argc, char *argv[])
        }
 
        while (optind < argc) {
+               assert(argv[optind] != NULL);
                if (!inname) {
                        inname = argv[optind];
                } else if (!outname) {