projects
/
platform
/
upstream
/
kbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67b7e11
)
Fix runtime warinings
author
Alexey Gladkov
<gladkov.alexey@gmail.com>
Thu, 2 Jan 2014 22:11:13 +0000
(
02:11
+0400)
committer
Alexey Gladkov
<gladkov.alexey@gmail.com>
Thu, 2 Jan 2014 22:11:13 +0000
(
02:11
+0400)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
src/libkeymap/summary.c
patch
|
blob
|
history
diff --git
a/src/libkeymap/summary.c
b/src/libkeymap/summary.c
index
d85778d
..
316459a
100644
(file)
--- a/
src/libkeymap/summary.c
+++ b/
src/libkeymap/summary.c
@@
-71,7
+71,7
@@
lk_get_kmapinfo(struct lk_ctx *ctx, struct kmapinfo *res)
res->keymaps_alloced = 0;
for (i = 0; i < MAX_NR_KEYMAPS; i++) {
- if (lk_get_key(ctx, i, 0) == K_ALLOCATED) {
+ if (lk_
map_exists(ctx, i) && lk_
get_key(ctx, i, 0) == K_ALLOCATED) {
res->keymaps_alloced++;
}
}