From 59f1c62f0aab7ea8a66d24649ff2fc681341b90a Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Mon, 21 Dec 2015 17:25:32 +0900 Subject: [PATCH] Svace issue fix Change-Id: I85033f3e1ca632d39fcdd9e4d830cad9bf3a5c80 --- src/common/media-svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/media-svc.c b/src/common/media-svc.c index 5861df2..3af8367 100755 --- a/src/common/media-svc.c +++ b/src/common/media-svc.c @@ -1144,7 +1144,7 @@ int media_svc_rename_folder(MediaSvcHandle *handle, const char *storage_id, cons /* Rename thumbnail file of file system */ char *default_thumbnail_path = _media_svc_get_thumb_default_path(uid); - if ((!no_thumb) && (strncmp(media_thumb_path, default_thumbnail_path, strlen(default_thumbnail_path)) != 0)) { + if ((!no_thumb) && (default_thumbnail_path != NULL) && (strncmp(media_thumb_path, default_thumbnail_path, strlen(default_thumbnail_path)) != 0)) { ret = _media_svc_rename_file(media_thumb_path, media_new_thumb_path); if (ret != MS_MEDIA_ERR_NONE) { media_svc_error("_media_svc_rename_file failed : %d", ret); -- 2.34.1