aboutsummaryrefslogtreecommitdiffstats
path: root/src/estream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/estream.c')
-rw-r--r--src/estream.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/estream.c b/src/estream.c
index 42609ee..3c7d05f 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -4347,12 +4347,9 @@ fname_set_internal (estream_t stream, const char *fname, int quote)
quote = !!quote;
stream->intern->printable_fname = mem_alloc (strlen (fname) + quote + 1);
- if (fname)
- {
- if (quote)
- stream->intern->printable_fname[0] = '\\';
- strcpy (stream->intern->printable_fname+quote, fname);
- }
+ if (quote)
+ stream->intern->printable_fname[0] = '\\';
+ strcpy (stream->intern->printable_fname+quote, fname);
}