From 9e13643407ee4eb0188238432dda6f21abb7e727 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Thu, 23 Jun 2011 14:16:07 +0200 Subject: [PATCH] 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". --- src/mixed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1