mirror of
https://github.com/simh/simh.git
synced 2026-02-27 01:00:07 +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 */
|
||||
|
||||
#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: */
|
||||
|
||||
Reference in New Issue
Block a user