Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
global: fix uninitialized variable warnings for -Og
  • Loading branch information
perexg committed May 10, 2015
1 parent 7317e3f commit 339be8e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/api_idnode.c
Expand Up @@ -224,7 +224,7 @@ api_idnode_load
htsmsg_t *uuids, *l = NULL, *m;
htsmsg_t *flist;
htsmsg_field_t *f;
const char *uuid, *class;
const char *uuid = NULL, *class;

/* Class based */
if ((class = htsmsg_get_str(args, "class"))) {
Expand Down
2 changes: 1 addition & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -75,8 +75,8 @@ dvr_entry_assign_broadcast(dvr_entry_t *de, epg_broadcast_t *bcast)
char id[16];
if (bcast != de->de_bcast) {
if (de->de_bcast) {
de->de_bcast->putref((epg_object_t*)de->de_bcast);
snprintf(id, sizeof(id), "%u", de->de_bcast->id);
de->de_bcast->putref((epg_object_t*)de->de_bcast);
notify_delayed(id, "epg", "dvr_delete");
de->de_bcast = NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion src/dvr/dvr_inotify.c
Expand Up @@ -129,7 +129,7 @@ void dvr_inotify_add ( dvr_entry_t *de )
*/
void dvr_inotify_del ( dvr_entry_t *de )
{
dvr_entry_t *det;
dvr_entry_t *det = NULL;
dvr_inotify_entry_t *e;
lock_assert(&global_lock);
RB_FOREACH(e, &_inot_tree, link) {
Expand Down
2 changes: 2 additions & 0 deletions src/htsp_server.c
Expand Up @@ -2628,6 +2628,8 @@ htsp_read_loop(htsp_connection_t *htsp)

while(tvheadend_running) {
readmsg:
reply = NULL;

if((r = htsp_read_message(htsp, &m, 0)) != 0)
break;

Expand Down
2 changes: 1 addition & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_adapter.c
Expand Up @@ -447,7 +447,7 @@ linuxdvb_adapter_del ( const char *path )
{
int a;
linuxdvb_frontend_t *lfe, *next;
linuxdvb_adapter_t *la;
linuxdvb_adapter_t *la = NULL;
tvh_hardware_t *th;

if (sscanf(path, "/dev/dvb/adapter%d", &a) == 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_frontend.c
Expand Up @@ -1450,7 +1450,7 @@ int
linuxdvb_frontend_tune1
( linuxdvb_frontend_t *lfe, mpegts_mux_instance_t *mmi, uint32_t freq )
{
int r, i, rep;
int r = 0, i, rep;
char buf1[256], buf2[256];

lfe->mi_display_name((mpegts_input_t*)lfe, buf1, sizeof(buf1));
Expand Down

0 comments on commit 339be8e

Please sign in to comment.