projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bootconfig: Fix missing return check of xbc_node_compose_key function
[linux-2.6-microblaze.git]
/
tools
/
bootconfig
/
main.c
diff --git
a/tools/bootconfig/main.c
b/tools/bootconfig/main.c
index
f45fa99
..
fd67496
100644
(file)
--- a/
tools/bootconfig/main.c
+++ b/
tools/bootconfig/main.c
@@
-111,9
+111,11
@@
static void xbc_show_list(void)
char key[XBC_KEYLEN_MAX];
struct xbc_node *leaf;
const char *val;
char key[XBC_KEYLEN_MAX];
struct xbc_node *leaf;
const char *val;
+ int ret;
xbc_for_each_key_value(leaf, val) {
xbc_for_each_key_value(leaf, val) {
- if (xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX) < 0) {
+ ret = xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX);
+ if (ret < 0) {
fprintf(stderr, "Failed to compose key %d\n", ret);
break;
}
fprintf(stderr, "Failed to compose key %d\n", ret);
break;
}