Two minor code cleanups and one NULL deref on error fix.
[gnupg.git] / common / estream.c
index be791a8..6272c81 100644 (file)
@@ -3101,7 +3101,7 @@ es_freopen (const char *ES__RESTRICT path, const char *ES__RESTRICT mode,
        }
       else
         {
-          if (stream && path)
+          if (path)
             fname_set_internal (stream, path, 1);
           ESTREAM_UNLOCK (stream);
         }