From: David Lawrence Ramsey Date: Sat, 26 Mar 2005 06:54:36 +0000 (+0000) Subject: in make_mbchar(), remove an unneeded assert X-Git-Tag: v1.3.7~32 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5f3695bdb5dd7a0f92cdd0e5da1c6ba01dc6bd3c;p=nano.git in make_mbchar(), remove an unneeded assert git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2430 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 943fc55a..c69484f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ CVS code - always turned on. Changes to do_alt_speller(), handle_sigwinch(), and main(). (DLR) - chars.c: + make_mbchar() + - Remove unneeded assert. (DLR) move_mbleft() - Fix assert to reference the proper variable, so that nano builds with DEBUG defined again. (Mike Frysinger, found by diff --git a/src/chars.c b/src/chars.c index eff45978..7f6c8b7e 100644 --- a/src/chars.c +++ b/src/chars.c @@ -278,7 +278,7 @@ char *make_mbchar(int chr, int *chr_mb_len) { char *chr_mb; - assert(chr_mb != NULL && chr_mb_len != NULL); + assert(chr_mb_len != NULL); #ifdef NANO_WIDE if (!ISSET(NO_UTF8)) {