From cf7df9f141be2f04503affb94a60d8a8fe42714d Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Wed, 13 Sep 2017 16:13:14 +0000 Subject: [PATCH] libedit: add missing bracket. We never hit this because we always build with widechar support. Reported by: cognet MFC after: 3 days --- lib/libedit/chartype.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libedit/chartype.c b/lib/libedit/chartype.c index 9cb54ac11a7..44fb953f858 100644 --- a/lib/libedit/chartype.c +++ b/lib/libedit/chartype.c @@ -223,6 +223,7 @@ ct_mbrtowc(wchar_t *wc, const char *s, size_t n) size_t ct_mbrtowc(wchar_t *wc, const char *s, size_t n) +{ if (s == NULL) return 0; if (n == 0)