summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-12-09 09:58:00 (GMT)
committerMinkyu Kang <mk7.kang@samsung.com>2015-12-09 09:58:00 (GMT)
commit99e22c7d4cb65273103b802d5f226cc7687ed1ee (patch)
tree4bfc75e6f86b2e2d8c366d211a87ca54902bfbb0
parentaebde7d87ba0fca4b24c775cc49b79b1b42c95e5 (diff)
downloadair_mediahub-99e22c7d4cb65273103b802d5f226cc7687ed1ee.zip
air_mediahub-99e22c7d4cb65273103b802d5f226cc7687ed1ee.tar.gz
air_mediahub-99e22c7d4cb65273103b802d5f226cc7687ed1ee.tar.bz2
util: fix crash issuerefs/changes/90/53790/1
Change-Id: I61c3b278a8c9e600a2405043a646d4b9b49117ae Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--src/util/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/util.c b/src/util/util.c
index 43daa06..d44205d 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -33,6 +33,9 @@
*/
bool util_check_movie_type(const char *str)
{
+ if (!str)
+ return false;
+
return strcmp(str, VIDEO_COPYRIGHT);
}