From 0b7337d0084051ce3f2aef43dc8025edfbffdb09 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 17 Feb 2009 16:29:03 +0000 Subject: [PATCH] don't check for NULL. It can't be. --- src/apprentice.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apprentice.c b/src/apprentice.c index 5b611285..6884a0aa 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.148 2009/02/04 18:24:32 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.149 2009/02/10 16:17:47 christos Exp $") #endif /* lint */ #include "magic.h" @@ -1716,8 +1716,7 @@ check_format(struct magic_set *ms, struct magic *m) * string is not one character long */ file_magwarn(ms, "Printf format `%c' is not valid for type " - "`%s' in description `%s'", - ptr && *ptr ? *ptr : '?', + "`%s' in description `%s'", *ptr ? *ptr : '?', file_names[m->type], m->desc); return -1; } -- 2.40.0