From fec774b665f183d7cb67d3fc5700fac8c1af41ce Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 7 Dec 2025 15:23:11 -0500 Subject: [PATCH] Revert "command.c: fix "alias" command crashing when no aliases were registered" This reverts commit 0f4cf9ff8ca871ba52fe99e5cdd5864cd081dacb. --- src/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.c b/src/command.c index ce84727f6..a7f2d1dac 100644 --- a/src/command.c +++ b/src/command.c @@ -750,7 +750,7 @@ static void COM_Alias_f(void) CONS_Printf(M_GetText("All aliases that start with \x87'%s'\x80 are:\n"), begin); int count = 0; - for (cmdalias_t *head = com_alias; head != NULL && head->next != NULL; head = head->next) + for (cmdalias_t *head = com_alias; head->next != NULL; head = head->next) { if (strncmp(begin, head->name, szBegin) == 0) { @@ -771,7 +771,7 @@ static void COM_Alias_f(void) /* Display alias subtext, show all aliases. */ CONS_Printf(M_GetText("alias : create a shortcut command that executes other command(s)\n")); - for (cmdalias_t *head = com_alias; head != NULL && head->next != NULL; head = head->next) + for (cmdalias_t *head = com_alias; head->next != NULL; head = head->next) { CONS_Printf(alias_format, head->name, head->value); }