summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/media-thumbnail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media-thumbnail.c b/src/media-thumbnail.c
index d51a280..e241509 100755
--- a/src/media-thumbnail.c
+++ b/src/media-thumbnail.c
@@ -372,7 +372,7 @@ static int __check_thumb_path_validity(const char *path)
char *dir_name = NULL;
int ret = MS_MEDIA_ERR_NONE;
- thumb_retvm_if(!path, MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid path");
+ thumb_retvm_if(!STRING_VALID(path), MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid path");
dir_name = g_path_get_dirname(path);