aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-07-16 20:43:48 +0000
committerDoug Evans <dje@google.com>2013-07-16 20:43:48 +0000
commit2c57100624571d93ebc965bed32b7d517a382e02 (patch)
tree7a4f6df0eca44e7fc7c6f49a313b4fb7a2812390 /gdb/nto-tdep.c
parent2b2848e211ef08d32b8427839b95b472d8fde337 (diff)
downloadgdb-2c57100624571d93ebc965bed32b7d517a382e02.zip
gdb-2c57100624571d93ebc965bed32b7d517a382e02.tar.gz
gdb-2c57100624571d93ebc965bed32b7d517a382e02.tar.bz2
* solist.h (target_so_ops.find_and_open_solib): Clarify usage of
temp_pathname argument. * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname when opening the file fails.
Diffstat (limited to 'gdb/nto-tdep.c')
-rw-r--r--gdb/nto-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index b1a431c..3ed48a9 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -138,7 +138,7 @@ nto_find_and_open_solib (char *solib, unsigned o_flags, char **temp_pathname)
if (ret >= 0)
*temp_pathname = gdb_realpath (arch_path);
else
- **temp_pathname = '\0';
+ *temp_pathname = NULL;
}
}
return ret;