]> granicus.if.org Git - recode/commitdiff
Coverity: FORWARD_NULL
authorJiri Popelka <jpopelka@redhat.com>
Thu, 23 Jun 2011 12:16:07 +0000 (14:16 +0200)
committerJiri Popelka <jpopelka@redhat.com>
Thu, 23 Jun 2011 12:16:07 +0000 (14:16 +0200)
src/mixed.c:56: assign_zero: Assigning: "task->input.name" = 0.
src/mixed.c:64: var_deref_op: Dereferencing null variable "task->input.name".

src/mixed.c

index 8bcd9df77dda6074523ce26c5fcf8a1007b326a3..ec0ff60e935b26394b2a659070c5de43df2908d3 100644 (file)
@@ -61,7 +61,7 @@ open_mixed (struct mixed *mixed, RECODE_TASK task)
           !task->output.file)
     {
       recode_perror (NULL, "fopen (%s)", task->output.name);
-      if (*(task->input.name))
+      if (task->input.file != stdin)
        fclose (task->input.file);
       return false;
     }