X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=status.c;h=09a9df81453f46ceedb4c15ce76505ab61693601;hb=a079d019ec8e6f0be0decaafc9e914bc842f9983;hp=305be601ef207035585cd09c05e1194fb3fea1b9;hpb=6e0187ce721be4997bef32d724528f8976df89d6;p=apps%2Fmadmutt.git diff --git a/status.c b/status.c index 305be60..09a9df8 100644 --- a/status.c +++ b/status.c @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mutt_menu.h" #include "mutt_curses.h" @@ -274,7 +278,7 @@ status_format_str (char *buf, size_t buflen, char op, const char *src, if (!optional) { snprintf (fmt, sizeof(fmt), "%%%ss", prefix); - snprintf (buf, buflen, fmt, Context ? Context->pattern : 0); + snprintf (buf, buflen, fmt, (Context && Context->pattern) ? Context->pattern : ""); } else if (!Context || !Context->pattern) optional = 0;