Solve more Clang static analysis warnings
This commit is contained in:
parent
e82882a1ab
commit
f071e8b440
|
@ -1012,6 +1012,7 @@ static bool video_driver_init_internal(bool *video_is_threaded)
|
||||||
video.rgb32 = video_driver_state_filter ?
|
video.rgb32 = video_driver_state_filter ?
|
||||||
video_driver_state_out_rgb32 :
|
video_driver_state_out_rgb32 :
|
||||||
(video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
|
(video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
|
||||||
|
video.parent = 0;
|
||||||
|
|
||||||
/* Reset video frame count */
|
/* Reset video frame count */
|
||||||
video_driver_frame_count = 0;
|
video_driver_frame_count = 0;
|
||||||
|
|
|
@ -202,12 +202,15 @@ static int deferred_push_cursor_manager_list_deferred(
|
||||||
|
|
||||||
if (!string_is_empty(info->path_b))
|
if (!string_is_empty(info->path_b))
|
||||||
free(info->path_b);
|
free(info->path_b);
|
||||||
|
|
||||||
if (!string_is_empty(info->path_c))
|
if (!string_is_empty(info->path_c))
|
||||||
free(info->path_c);
|
free(info->path_c);
|
||||||
|
|
||||||
|
info->path_b = strdup(info->path);
|
||||||
|
|
||||||
if (!string_is_empty(info->path))
|
if (!string_is_empty(info->path))
|
||||||
free(info->path);
|
free(info->path);
|
||||||
|
|
||||||
info->path_b = strdup(info->path);
|
|
||||||
info->path_c = strdup(query);
|
info->path_c = strdup(query);
|
||||||
info->path = strdup(rdb_path);
|
info->path = strdup(rdb_path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue