mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
PR gdb/20653 - small cleanup in string_to_explicit_location
This bug points out that string_to_explicit_location compares a char* against '\0'; whereas comparing against NULL is more normal. 2016-10-05 Tom Tromey <tom@tromey.com> PR breakpoints/20653: * location.c (string_to_explicit_location): Use NULL, not '\0'.
This commit is contained in:
parent
3e611445bf
commit
e742d386c4
@ -1,3 +1,8 @@
|
||||
2016-10-05 Tom Tromey <tom@tromey.com>
|
||||
|
||||
PR breakpoints/20653:
|
||||
* location.c (string_to_explicit_location): Use NULL, not '\0'.
|
||||
|
||||
2016-10-05 Tom Tromey <tom@tromey.com>
|
||||
|
||||
PR symtab/20652:
|
||||
|
@ -524,7 +524,7 @@ string_to_explicit_location (const char **argp,
|
||||
character is an explicit location. "-p" is reserved, though,
|
||||
for probe locations. */
|
||||
if (argp == NULL
|
||||
|| *argp == '\0'
|
||||
|| *argp == NULL
|
||||
|| *argp[0] != '-'
|
||||
|| !isalpha ((*argp)[1])
|
||||
|| ((*argp)[0] == '-' && (*argp)[1] == 'p'))
|
||||
|
Loading…
Reference in New Issue
Block a user