Skip to content

Commit

Permalink
(Camera/Location stub drivers) Changes
Browse files Browse the repository at this point in the history
(General) Fix some potential uninitialized variables
  • Loading branch information
inactive123 committed Aug 17, 2014
1 parent df46a95 commit f9c0f5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion camera/nullcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 3 additions & 1 deletion frontend/menu/backend/menu_common_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion location/nulllocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9c0f5a

Please sign in to comment.