X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fcommand_db.c;h=68d4ce2dfd7f8908dd188d85b39195e7337fef59;hb=a6fd795234fd4e4f9aebcfdc1771afd22c3c9c23;hp=a7523b79a1a40b2863eac2dbc3dc45cf60fd3527;hpb=891ba8fbca53d920f6b3704827fa6b8aee737de4;p=plomrogue
diff --git a/src/client/command_db.c b/src/client/command_db.c
index a7523b7..68d4ce2 100644
--- a/src/client/command_db.c
+++ b/src/client/command_db.c
@@ -1,4 +1,9 @@
-/* src/client/command_db.c */
+/* src/client/command_db.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
#define _POSIX_C_SOURCE 200809L /* strdup() */
#include "command_db.h"
@@ -64,7 +69,7 @@ static void tokens_into_entries(char * token0, char * token1)
cmd = (struct Command *) parse_init_entry(&cmd_flags,
sizeof(struct Command));
cmd->dsc_short = strdup(token1);
- parse_id_uniq(NULL != get_command(cmd->dsc_short));
+ parse_id_uniq(!(!get_command(cmd->dsc_short)));
}
else if (!( parse_flagval(token0, token1, "DESCRIPTION", &cmd_flags,
DESC_SET, 's', (char *) &cmd->dsc_long)