summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2017-04-25 04:19:00 (GMT)
committerJiyong Min <jiyong.min@samsung.com>2017-04-25 05:06:00 (GMT)
commit06a75284fb5bf7f8ddcd428a507b3efc81af7db4 (patch)
tree9ab5c52bdbed68f0aed710d0c08a80390211a28a /src/include
parent7f0656b53cddb9d9ae44a97041a81b4cd1415130 (diff)
downloadlibmedia-thumbnail-06a75284fb5bf7f8ddcd428a507b3efc81af7db4.zip
libmedia-thumbnail-06a75284fb5bf7f8ddcd428a507b3efc81af7db4.tar.gz
libmedia-thumbnail-06a75284fb5bf7f8ddcd428a507b3efc81af7db4.tar.bz2
Modify null pointer dereferenced in _media_thumb_get_thumb_path_from_dbsubmit/tizen/20170425.054247accepted/tizen/unified/20170426.061631refs/changes/48/126748/3
Change-Id: Iacb19869df0023972bc4e04872864186be3bc4b4 Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/util/media-thumb-db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/util/media-thumb-db.h b/src/include/util/media-thumb-db.h
index 23ac277..7f641c7 100755
--- a/src/include/util/media-thumb-db.h
+++ b/src/include/util/media-thumb-db.h
@@ -25,6 +25,9 @@
#ifndef _MEDIA_THUMB_DB_H_
#define _MEDIA_THUMB_DB_H_
+#define STRING_VALID(str) \
+ ((str != NULL && strlen(str) > 0) ? TRUE : FALSE)
+
#define MEDIA_DATABASE_NAME MEDIA_DB_NAME /* defined in media-util.h */
#define SELECT_PATH_FROM_UNEXTRACTED_THUMB_MEDIA "SELECT path from media where thumbnail_path is null and validity=1 and (media_type=0 or media_type=1);"