mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 08:52:41 +00:00
(Camera/Location stub drivers) Changes
(General) Fix some potential uninitialized variables
This commit is contained in:
parent
df46a9573b
commit
f9c0f5ac64
@ -37,7 +37,7 @@ static void nullcamera_stop(void *data)
|
||||
static bool nullcamera_poll(void *data, retro_camera_frame_raw_framebuffer_t frame_raw_cb,
|
||||
retro_camera_frame_opengl_texture_t frame_gl_cb)
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
const camera_driver_t camera_null = {
|
||||
|
@ -1553,7 +1553,9 @@ static void menu_parse_and_resolve(unsigned menu_type)
|
||||
for (i = 0; i < list_size; i++)
|
||||
{
|
||||
char fill_buf[PATH_MAX];
|
||||
const char *path, *core_path, *core_name = NULL;
|
||||
const char *path = NULL;
|
||||
const char *core_path = NULL;
|
||||
const char *core_name = NULL;
|
||||
|
||||
content_playlist_get_index(g_extern.history, i,
|
||||
&path, &core_path, &core_name);
|
||||
|
@ -44,7 +44,11 @@ static void null_location_stop(void *data)
|
||||
static bool null_location_get_position(void *data, double *latitude, double *longitude, double *horiz_accuracy,
|
||||
double *vert_accuracy)
|
||||
{
|
||||
return false;
|
||||
*latitude = 0.0;
|
||||
*longitude = 0.0;
|
||||
*horiz_accuracy = 0.0;
|
||||
*vert_accuracy = 0.0;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void null_location_set_interval(void *data, unsigned interval_ms, unsigned interval_distance)
|
||||
|
Loading…
x
Reference in New Issue
Block a user