From 9a1b59641ae2da305180c438a01cb16e95d8a9f1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 7 Nov 2011 22:29:29 +0000 Subject: [PATCH] allocating 0 bytes: stay classy e SVN revision: 64883 --- src/bin/e_intl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_intl.c b/src/bin/e_intl.c index 4d6bb9d2a..d8eecfe03 100644 --- a/src/bin/e_intl.c +++ b/src/bin/e_intl.c @@ -784,6 +784,8 @@ e_intl_locale_parts_combine(E_Locale_Parts *locale_parts, int mask) if (mask & E_INTL_LOC_MODIFIER) locale_size += strlen(locale_parts->modifier) + 1; + if (!locale_size) return NULL; + /* Allocate memory */ locale = (char *) malloc(locale_size); locale[0] = 0;