From d02ce3afb1d1f8b8caa7d3c4def324b33053147b Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 27 Aug 2017 17:21:37 -0700 Subject: [PATCH] Fix type mismatch (ptr & int) in comparison. --- borrowed/libc/strfmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borrowed/libc/strfmon.c b/borrowed/libc/strfmon.c index f6a665f5c8..d5ce44fd5c 100644 --- a/borrowed/libc/strfmon.c +++ b/borrowed/libc/strfmon.c @@ -414,7 +414,7 @@ __setup_vars(int flags, char *cs_precedes, char *sep_by_space, *cs_precedes = lc->n_cs_precedes; *sep_by_space = lc->n_sep_by_space; *sign_posn = (flags & PARENTH_POSN) ? 0 : lc->n_sign_posn; - *signstr = (lc->negative_sign == '\0') ? "-" + *signstr = (lc->negative_sign == NULL) ? "-" : lc->negative_sign; } else { *cs_precedes = lc->p_cs_precedes;