From: Christian Heller Date: Mon, 14 Apr 2014 09:57:30 +0000 (+0200) Subject: Client: Fixed use of unitialized variable in draw_wins.c. X-Git-Tag: tce~766 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/%27%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28escapeHTML%28span%5B2%5D%29%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28%27?a=commitdiff_plain;h=0dcbddd20b01bc4e82fd30930b6a7fb9b480e9ea;p=plomrogue Client: Fixed use of unitialized variable in draw_wins.c. --- diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c index b55b998..08e5927 100644 --- a/src/client/draw_wins.c +++ b/src/client/draw_wins.c @@ -398,13 +398,9 @@ extern void draw_win_inventory(struct Win * win) extern void draw_win_available_keybindings(struct Win * win) { char * title = "Active window's keys:"; - struct KeyBindingDB * kbdb; struct Win * win_active = get_win_by_id(world.winDB.active); - if (0 == win_active->view) - { - kbdb = &win_active->kb; - } - else if (1 == win_active->view) + struct KeyBindingDB * kbdb = &win_active->kb; + if (1 == win_active->view) { kbdb = &world.kb_wingeom; }