From 54d6a73b7202188e89868f01f38d40a55d7ce6a3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 13 Oct 2014 04:33:48 +0200 Subject: [PATCH] disp_set_label = set type_str to '\0' by default --- frontend/menu/disp/shared.h | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/menu/disp/shared.h b/frontend/menu/disp/shared.h index 6a870d2168..7f76285b7f 100644 --- a/frontend/menu/disp/shared.h +++ b/frontend/menu/disp/shared.h @@ -134,6 +134,7 @@ static void disp_set_label(unsigned *w, unsigned type, unsigned i, const char *path, char *path_buf, size_t path_buf_size) { + *type_str = '\0'; *w = 19; if (!strcmp(label, "performance_counters"))