Solve more Clang static analysis warnings

This commit is contained in:
twinaphex 2018-04-09 16:42:12 +02:00
parent e82882a1ab
commit f071e8b440
2 changed files with 5 additions and 1 deletions

View File

@ -1012,6 +1012,7 @@ static bool video_driver_init_internal(bool *video_is_threaded)
video.rgb32 = video_driver_state_filter ?
video_driver_state_out_rgb32 :
(video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
video.parent = 0;
/* Reset video frame count */
video_driver_frame_count = 0;

View File

@ -202,12 +202,15 @@ static int deferred_push_cursor_manager_list_deferred(
if (!string_is_empty(info->path_b))
free(info->path_b);
if (!string_is_empty(info->path_c))
free(info->path_c);
info->path_b = strdup(info->path);
if (!string_is_empty(info->path))
free(info->path);
info->path_b = strdup(info->path);
info->path_c = strdup(query);
info->path = strdup(rdb_path);