From 61eb5627f10f27a27bd8b93031878e2564249e9c Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 26 Jan 2005 12:16:54 +0000 Subject: [PATCH] A variant of . Spotted by Ralf Wildenhues . --- status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.c b/status.c index 3d175f65..bb770e57 100644 --- a/status.c +++ b/status.c @@ -266,7 +266,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, NONULL (Context)); } else if (!Context || !Context->pattern) optional = 0; -- 2.40.0