From: Nikos Mavrogiannopoulos Date: Thu, 5 Apr 2012 16:31:28 +0000 (+0200) Subject: raw_to_string no longer returns NULL. X-Git-Tag: gnutls_3_0_19~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb3237f89b8f79dab693e3e315bf8363d3e32e8c;p=thirdparty%2Fgnutls.git raw_to_string no longer returns NULL. --- diff --git a/src/common.c b/src/common.c index 48f56bdcc7..b61bc0f20f 100644 --- a/src/common.c +++ b/src/common.c @@ -51,10 +51,10 @@ raw_to_string (const unsigned char *raw, size_t raw_size) static char buf[1024]; size_t i; if (raw_size == 0) - return NULL; + return "(empty)"; if (raw_size * 3 + 1 >= sizeof (buf)) - return NULL; + return "(too large)"; for (i = 0; i < raw_size; i++) {