home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12239c9
)
Client: Fixed use of unitialized variable in draw_wins.c.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 14 Apr 2014 09:57:30 +0000
(11:57 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 14 Apr 2014 09:57:30 +0000
(11:57 +0200)
src/client/draw_wins.c
patch
|
blob
|
history
diff --git
a/src/client/draw_wins.c
b/src/client/draw_wins.c
index b55b998bb403ba359ca373d2a12808ef7a922689..08e59270f36931451870f7c5e34a5fe6e6af9b55 100644
(file)
--- 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;
}