aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 8b330de..2ee51b6 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -529,7 +529,7 @@ openp (path, try_cwd_first, string, mode, prot, filename_opened)
mode |= O_BINARY;
#endif
- if (try_cwd_first || SLASH_P (string[0]))
+ if (try_cwd_first || ROOTED_P (string))
{
int i;
filename = string;