eina/eina_stringshare - + NULL Checking.
authorChunEon Park <hermet@hermet.pe.kr>
Wed, 2 May 2012 05:05:10 +0000 (05:05 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Wed, 2 May 2012 05:05:10 +0000 (05:05 +0000)
SVN revision: 70596

legacy/eina/src/lib/eina_stringshare.c

index f371fcd..3807d01 100644 (file)
@@ -765,6 +765,9 @@ EAPI int
 eina_stringshare_strlen(Eina_Stringshare *str)
 {
    int len;
+
+   if (!str) return 0;
+
    /* special cases */
    if (str[0] == '\0')
       return 0;