From a04be3abdde1dbf19f84ea2e037031a248c3037f Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Tue, 31 May 2016 07:57:23 +0900 Subject: [PATCH] Add to check string valid for thumbnail path when thumbnail is completed Change-Id: I5ce1cf9caa9d0689b976522c148c0be264e0119b Signed-off-by: Jiyong Min --- src/media_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media_info.c b/src/media_info.c index ec3b50d..19e806a 100755 --- a/src/media_info.c +++ b/src/media_info.c @@ -84,7 +84,7 @@ static void __media_info_thumbnail_completed_cb(int error, const char *path, voi if (_thumb_cb != NULL) { media = _thumb_cb->handle; - if ((media != NULL) && (path != NULL)) { + if ((media != NULL) && STRING_VALID(path)) { SAFE_FREE(media->thumbnail_path); media->thumbnail_path = g_strdup(path); } -- 2.7.4