From: Daniel Jacobowitz Date: Mon, 13 Jan 2003 20:26:15 +0000 (+0000) Subject: * source.c (openp): Squelch warning about "filename". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f565f1eb5001c29a32b383d8b7fe05f73557db8;p=binutils-gdb.git * source.c (openp): Squelch warning about "filename". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4da29efc15..0fd32b89f73 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-01-13 Daniel Jacobowitz + + * source.c (openp): Squelch warning about "filename". + 2003-01-13 Daniel Jacobowitz * source.c (openp): If the file does not exist don't necessarily diff --git a/gdb/source.c b/gdb/source.c index f3700db8188..c2269fadcd5 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -687,7 +687,10 @@ openp (const char *path, int try_cwd_first, const char *string, goto done; } else - fd = -1; + { + filename = NULL; + fd = -1; + } for (i = 0; string[i]; i++) if (IS_DIR_SEPARATOR (string[i]))