summaryrefslogtreecommitdiff
path: root/imap/src/c-client/utf8.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-04-17 09:40:29 -0600
committerEduardo Chappa <chappa@washington.edu>2015-04-17 09:40:29 -0600
commit69b0d3a5dff7b8be0deada358dad1a55f319d769 (patch)
tree9e8196a7d34e6b3a87525992c0f4c85362d06a07 /imap/src/c-client/utf8.c
parentbf49fb6584bfd8c4cfae5bab4c5f46b155bcb5a7 (diff)
downloadalpine-69b0d3a5dff7b8be0deada358dad1a55f319d769.tar.xz
NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
* Call to utf8_parameters was not prototyped. * Call to utf8_parameters did not return NULL when the value to be searched was not defined by that function, causing a crash. Reported and fixed by Dennis Davis.
Diffstat (limited to 'imap/src/c-client/utf8.c')
-rw-r--r--imap/src/c-client/utf8.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/imap/src/c-client/utf8.c b/imap/src/c-client/utf8.c
index e734a6bb..cad4a7c7 100644
--- a/imap/src/c-client/utf8.c
+++ b/imap/src/c-client/utf8.c
@@ -2595,6 +2595,8 @@ void *utf8_parameters (long function,void *value)
case GET_UCS4WIDTH:
ret = (void *) ucs4width;
break;
+ default: ret = NULL;
+ break;
}
return ret;
}