mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
Initialize local variables to silence OpenWrt compiler warnings
This commit is contained in:
parent
cc1785a843
commit
8b2d40d46f
4
src/db.c
4
src/db.c
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user