mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 15:16:06 +00:00
Fixed regression recently introduced in string compare macro MATCH_CMD
This commit is contained in:
@@ -277,7 +277,7 @@ typedef uint32 t_addr;
|
|||||||
|
|
||||||
/* String match - at least one character required */
|
/* 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 */
|
/* End of Linked List/Queue value */
|
||||||
/* Chosen for 2 reasons: */
|
/* Chosen for 2 reasons: */
|
||||||
|
|||||||
Reference in New Issue
Block a user