aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-01-13 20:26:15 +0000
committerDaniel Jacobowitz <drow@false.org>2003-01-13 20:26:15 +0000
commit3f565f1eb5001c29a32b383d8b7fe05f73557db8 (patch)
tree861078e6871ac6caec4add175b333c2dfbae43ab /gdb/source.c
parent32d34c7c4da940eff3b8471d561e51abac2df88b (diff)
downloadgdb-3f565f1eb5001c29a32b383d8b7fe05f73557db8.zip
gdb-3f565f1eb5001c29a32b383d8b7fe05f73557db8.tar.gz
gdb-3f565f1eb5001c29a32b383d8b7fe05f73557db8.tar.bz2
* source.c (openp): Squelch warning about "filename".
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index f3700db..c2269fa 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]))