Initialize local variables to silence OpenWrt compiler warnings

This commit is contained in:
chme 2018-02-22 21:35:38 +01:00
parent cc1785a843
commit 8b2d40d46f
2 changed files with 3 additions and 3 deletions

View File

@ -4292,7 +4292,7 @@ db_queue_add_by_query(struct query_params *qp, char reshuffle, uint32_t item_id)
struct db_media_file_info dbmfi;
int queue_version;
int pos;
int new_item_id;
int new_item_id = 0; // Quell compiler warning about uninitialized use of new_item_id
int ret;
queue_version = queue_transaction_begin();
@ -4419,7 +4419,7 @@ db_queue_add_item(struct db_queue_item *queue_item, char reshuffle, uint32_t ite
int queue_version;
char *query;
int pos;
int new_item_id;
int new_item_id = 0; // Quell compiler warning about uninitialized use of new_item_id
int ret;
queue_version = queue_transaction_begin();

View File

@ -3469,7 +3469,7 @@ static struct mpd_sticker_command mpd_sticker_handlers[] =
static int
mpd_command_sticker(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, struct mpd_client_ctx *ctx)
{
struct mpd_sticker_command *cmd_param;
struct mpd_sticker_command *cmd_param = NULL; // Quell compiler warning about uninitialized use of cmd_param
char *virtual_path = NULL;
int i;
int ret;