diff --git a/src/da65/labels.c b/src/da65/labels.c index 97e195ebf..542205c11 100644 --- a/src/da65/labels.c +++ b/src/da65/labels.c @@ -97,7 +97,9 @@ static void AddLabel (unsigned Addr, attr_t Attr, const char* Name) strcmp (SymTab[Addr], Name) == 0))) { return; } - Error ("Duplicate label for address $%04X: %s/%s", Addr, SymTab[Addr], Name); + Error ("Duplicate label for address $%04X (%s): '%s'", Addr, + SymTab[Addr] == 0 ? "" : SymTab[Addr], + Name == 0 ? "" : Name); } /* Create a new label (xstrdup will return NULL if input NULL) */