mirror of
https://github.com/open-simh/simh.git
synced 2026-01-17 16:54:08 +00:00
Fixed regression recently introduced in string compare macro MATCH_CMD
This commit is contained in:
parent
3eb373a71e
commit
e7032c6bd5
@ -277,7 +277,7 @@ typedef uint32 t_addr;
|
||||
|
||||
/* String match - at least one character required */
|
||||
|
||||
#define MATCH_CMD(ptr,cmd) ((!*(ptr)) || strncmp ((ptr), (cmd), strlen (ptr)))
|
||||
#define MATCH_CMD(ptr,cmd) ((!(ptr)) || (!*(ptr)) || strncmp ((ptr), (cmd), strlen (ptr)))
|
||||
|
||||
/* End of Linked List/Queue value */
|
||||
/* Chosen for 2 reasons: */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user