From 69b0d3a5dff7b8be0deada358dad1a55f319d769 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 17 Apr 2015 09:40:29 -0600 Subject: 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. --- imap/src/c-client/utf8.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'imap') 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; } -- cgit v1.2.3-70-g09d2