summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-10-16 02:34:01 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2015-10-16 02:34:01 (GMT)
commitd09bbffceb2babe51000ff3042c09febc3afaa09 (patch)
tree60e8fa7bba0b6bfe710cd0d9a314d5848c2d9f8d /src/util
parent43c07c05dd6821a249405477d8bd7912a11ff439 (diff)
downloadlibmedia-thumbnail-d09bbffceb2babe51000ff3042c09febc3afaa09.zip
libmedia-thumbnail-d09bbffceb2babe51000ff3042c09febc3afaa09.tar.gz
libmedia-thumbnail-d09bbffceb2babe51000ff3042c09febc3afaa09.tar.bz2
Change-Id: I0da7fbf08691fc8a262584d0e4f8edbfbd809b45 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/media-thumb-util.c b/src/util/media-thumb-util.c
index c487b6e..9d16281 100755
--- a/src/util/media-thumb-util.c
+++ b/src/util/media-thumb-util.c
@@ -90,7 +90,7 @@ _media_thumb_get_file_type(const char *file_full_path)
int _media_thumb_get_store_type_by_path(const char *full_path)
{
- if (full_path != NULL) {
+ if (full_path != NULL && THUMB_PATH_PHONE != NULL && THUMB_PATH_MMC != NULL) {
if (strncmp(full_path, THUMB_PATH_PHONE, strlen(THUMB_PATH_PHONE)) == 0) {
return THUMB_PHONE;
} else if (strncmp(full_path, THUMB_PATH_MMC, strlen(THUMB_PATH_MMC)) == 0) {