Date: Wed, 13 Sep 2017 16:13:14 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323547 - head/lib/libedit Message-ID: <201709131613.v8DGDEIE002349@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Wed Sep 13 16:13:14 2017 New Revision: 323547 URL: https://svnweb.freebsd.org/changeset/base/323547 Log: libedit: add missing bracket. We never hit this because we always build with widechar support. Reported by: cognet MFC after: 3 days Modified: head/lib/libedit/chartype.c Modified: head/lib/libedit/chartype.c ============================================================================== --- head/lib/libedit/chartype.c Wed Sep 13 16:05:26 2017 (r323546) +++ head/lib/libedit/chartype.c Wed Sep 13 16:13:14 2017 (r323547) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709131613.v8DGDEIE002349>