bug in alias handling (showed up w/ --triggers)

CVS patchset: 2538
CVS date: 1998/11/16 21:00:43
This commit is contained in:
ewt 1998-11-16 21:00:43 +00:00
parent 3b5593c7e0
commit bc2c860f87
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ static int handleAlias(poptContext con, char * longName, char shortName,
if (con->os->currAlias && con->os->currAlias->longName && longName &&
!strcmp(con->os->currAlias->longName, longName))
return 0;
if (con->os->currAlias && shortName == con->os->currAlias->shortName)
if (con->os->currAlias && shortName &&
shortName == con->os->currAlias->shortName)
return 0;
i = con->numAliases - 1;