summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-05-03 21:23:33 +0200
committerKay Sievers <kay@vrfy.org>2013-05-03 21:24:14 +0200
commit245d0f3bef783d8b1aac82d4839ce9166b80acb6 (patch)
tree94ae7d03dd46c17fb98db8c16e114aba7e26e1dd /src
parentf910fc02ae999d806ccacff9a88bae58360780a8 (diff)
setup: use the value not the index when updating an entry
Diffstat (limited to 'src')
-rw-r--r--src/setup/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup/setup.c b/src/setup/setup.c
index 9c95dc7..75bd8e8 100644
--- 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;
}