From: Behdad Esfahbod Date: Mon, 11 Apr 2011 21:49:10 +0000 (-0400) Subject: Make hb_language_from_string("") return NULL language X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=316b7a1afb84a5dfeaed886a585669b4d549c9b7;p=profile%2Fivi%2Forg.tizen.video-player.git Make hb_language_from_string("") return NULL language --- diff --git a/src/hb-language.c b/src/hb-language.c index 2aabada..7c2295a 100644 --- a/src/hb-language.c +++ b/src/hb-language.c @@ -85,7 +85,7 @@ hb_language_from_string (const char *str) /* TODO Use a hash table or something */ - if (!str) + if (!str || !*str) return NULL; for (i = 0; i < num_langs; i++)