(Camera/Location stub drivers) Changes

(General) Fix some potential uninitialized variables
This commit is contained in:
twinaphex 2014-08-17 06:09:23 +02:00
parent df46a9573b
commit f9c0f5ac64
3 changed files with 9 additions and 3 deletions

View File

@ -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 = {

View File

@ -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);

View File

@ -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)