Remove duplicated memory setting
[platform/core/api/media-content.git] / src / media_playlist.c
index 96e8126..172bbbb 100755 (executable)
@@ -196,7 +196,6 @@ static int __media_playlist_import_item_from_file(const char *playlist_path, GSL
                return MEDIA_CONTENT_ERROR_INVALID_OPERATION;
        }
 
-       memset(tmp_str, 0, sizeof(tmp_str));
        while (fgets(tmp_str, MAX_PATH_LEN, fp) != NULL) {
                memset(repl_item, 0, sizeof(repl_item));
                _media_content_replace_path(tmp_str, repl_item);
@@ -626,7 +625,6 @@ int media_playlist_import_from_file(const char *path, const char *playlist_name,
        content_retip_if_fail(STRING_VALID(path));
        content_retip_if_fail(STRING_VALID(playlist_name));
 
-       memset(repl_path, 0, sizeof(repl_path));
        ret = _media_content_replace_path(path, repl_path);
        content_retvm_if(!STRING_VALID(repl_path), MEDIA_CONTENT_ERROR_INVALID_OPERATION, "path replacement failed");
 
@@ -656,7 +654,6 @@ int media_playlist_export_to_file(media_playlist_h playlist, const char *path)
        content_retip_if_fail(playlist);
        content_retipm_if_fail(_playlist->playlist_id > 0, "%d", _playlist->playlist_id);
 
-       memset(repl_path, 0, sizeof(repl_path));
        ret = _media_content_replace_path(path, repl_path);
        content_retvm_if(!STRING_VALID(repl_path), MEDIA_CONTENT_ERROR_INVALID_OPERATION, "path replacement failed");