Prevent uninitialized scalar variable warnings

This commit is contained in:
twinaphex 2016-06-03 05:35:30 +02:00
parent 63b3f30112
commit 8486bf0058

View File

@ -40,8 +40,8 @@ void menu_cbs_init(void *data,
unsigned type, size_t idx)
{
menu_ctx_bind_t bind_info;
char elem0[PATH_MAX_LENGTH];
char elem1[PATH_MAX_LENGTH];
char elem0[PATH_MAX_LENGTH] = {0};
char elem1[PATH_MAX_LENGTH] = {0};
const char *repr_label = NULL;
struct string_list *str_list = NULL;
const char *menu_label = NULL;