From: Jiri Popelka <jpopelka@redhat.com>
Date: Thu, 23 Jun 2011 12:16:07 +0000 (+0200)
Subject: Coverity: FORWARD_NULL
X-Git-Tag: v3.7~193^2~2
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e13643407ee4eb0188238432dda6f21abb7e727;p=recode

Coverity: FORWARD_NULL

src/mixed.c:56: assign_zero: Assigning: "task->input.name" = 0.
src/mixed.c:64: var_deref_op: Dereferencing null variable "task->input.name".
---

diff --git a/src/mixed.c b/src/mixed.c
index 8bcd9df..ec0ff60 100644
--- a/src/mixed.c
+++ b/src/mixed.c
@@ -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;
     }