From: David Lawrence Ramsey Date: Thu, 16 Jun 2005 12:17:23 +0000 (+0000) Subject: fix compilation with --enable-debug X-Git-Tag: v1.3.8~107 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a9a3f4f599de372f143b35e0f42bf360cf6b867c;p=nano.git fix compilation with --enable-debug git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2696 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/chars.c b/src/chars.c index a842bcbb..0f76079e 100644 --- a/src/chars.c +++ b/src/chars.c @@ -775,7 +775,7 @@ bool has_blank_chars(const char *s) * multibyte characters, and FALSE otherwise. */ bool has_blank_mbchars(const char *s) { - assert(str != NULL); + assert(s != NULL); #ifdef NANO_WIDE if (ISSET(USE_UTF8)) { diff --git a/src/nano.c b/src/nano.c index 4fe5a60d..307e7bd5 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2643,7 +2643,7 @@ void justify_format(filestruct *paragraph, size_t skip) assert(paragraph != NULL); assert(paragraph->data != NULL); assert(skip < strlen(paragraph->data)); - assert(!is_blank_char(paragraph->data[skip])); + assert(!isblank(paragraph->data[skip])); end = paragraph->data + skip; new_paragraph_data = charalloc(strlen(paragraph->data) + 1);