projects
/
platform
/
upstream
/
gummiboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f910fc0
)
setup: use the value not the index when updating an entry
author
Kay Sievers
<kay@vrfy.org>
Fri, 3 May 2013 19:23:33 +0000
(21:23 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Fri, 3 May 2013 19:24:14 +0000
(21:24 +0200)
src/setup/setup.c
patch
|
blob
|
history
diff --git
a/src/setup/setup.c
b/src/setup/setup.c
index
9c95dc7
..
75bd8e8
100644
(file)
--- a/
src/setup/setup.c
+++ b/
src/setup/setup.c
@@
-859,7
+859,7
@@
static int find_slot(const uint8_t uuid[16], const char *path, uint16_t *id) {
/* find already existing gummiboot entry */
for (i = 0; i < n_options; i++)
if (same_entry(options[i], uuid, path)) {
- new_id =
i
;
+ new_id =
options[i]
;
existing = true;
goto finish;
}