xkbcomp: Kill warnings about address always evaluating as true

master
Dan Nicholson 2009-03-31 07:09:47 -07:00
parent a151329266
commit 05daf09f18
2 changed files with 2 additions and 2 deletions

View File

@ -2536,7 +2536,7 @@ HandleOverlayDef(OverlayDef * def,
{
WSGO("Couldn't allocate OverlayKeyInfo\n");
ACTION2("Overlay %s for section %s will be incomplete\n",
oiText(&ol), scText(si));
XkbcAtomText(ol.name), scText(si));
return False;
}
strncpy(key->over, keyDef->over, XkbKeyNameLength);

View File

@ -237,7 +237,7 @@ uInformation(const char * /* s */ , ...
);
#endif
#ifdef HAVE_STRDUP
#define uStringDup(s1) ((s1) ? strdup(s1) : NULL)
#define uStringDup(s1) (strdup(s1))
#else
extern char *uStringDup(const char * /* s1 */
);