aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mm.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-13 07:52:09 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-13 07:52:09 +0000
commite36ca74a036e36e37bad30dec9414be6e71ef060 (patch)
tree5c846068bf7b9425b78b4189f23e7acdc33e6e27 /gdb/remote-mm.c
parent841c051c44d5423640f593615404820013750402 (diff)
downloadfsf-binutils-gdb-e36ca74a036e36e37bad30dec9414be6e71ef060.zip
fsf-binutils-gdb-e36ca74a036e36e37bad30dec9414be6e71ef060.tar.gz
fsf-binutils-gdb-e36ca74a036e36e37bad30dec9414be6e71ef060.tar.bz2
Minor bugfixes after trying to get a 29K target to build.
Diffstat (limited to 'gdb/remote-mm.c')
-rw-r--r--gdb/remote-mm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c
index 902b448..d898402 100644
--- a/gdb/remote-mm.c
+++ b/gdb/remote-mm.c
@@ -287,9 +287,9 @@ mm_open (name, from_tty)
/* Find the first whitespace character, it separates dev_name from
prog_name. */
for (p = name;
- *p != '\0' && !isspace (*p); p++)
+ p && *p && !isspace (*p); p++)
;
- if (*p == '\0')
+ if (p == 0 || *p == '\0')
erroid:
error ("Usage : <command> <serial-device> <baud-rate> [progname]");
dev_name = (char*)malloc (p - name + 1);