From 41d25a71f1c114ef32178235ec4e616233b72cd4 Mon Sep 17 00:00:00 2001 From: hj kim Date: Fri, 23 Mar 2018 09:29:37 +0900 Subject: [PATCH] Fix Coverity issues Change-Id: I71fb5886972dae84270b701d35eca0176175fb86 --- test/metadata_editor_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/metadata_editor_test.c b/test/metadata_editor_test.c index 1f84eb3..6e2bbc6 100755 --- a/test/metadata_editor_test.c +++ b/test/metadata_editor_test.c @@ -366,10 +366,14 @@ static bool __add_picture(metadata_editor_h metadata) static bool __delete_pictures(metadata_editor_h metadata) { + int ret = METADATA_EDITOR_ERROR_NONE; uint num, i; char *picture_index = NULL; - metadata_editor_get_metadata(metadata, METADATA_EDITOR_ATTR_PICTURE_NUM, &picture_index); + ret = metadata_editor_get_metadata(metadata, METADATA_EDITOR_ATTR_PICTURE_NUM, &picture_index); + if (ret != METADATA_EDITOR_ERROR_NONE) + printf("fail to metadata_editor_get_metadata[%d]\n", ret); + printf("The number of pictures is [%s]\n", picture_index); if (picture_index) { -- 2.34.1