summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-19 15:38:57 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-04-29 14:41:04 +1000
commit75b1278f2ab0dad22f393e4a002f797dcb8c8a3b (patch)
tree5dcf593d55be97c752d482d0af0c3d662369735b
parent5be946cda7b8e2271ade6188ca3f5dc068826619 (diff)
downloadtalos-petitboot-75b1278f2ab0dad22f393e4a002f797dcb8c8a3b.tar.gz
talos-petitboot-75b1278f2ab0dad22f393e4a002f797dcb8c8a3b.zip
discover/device-handler: Initialise existing_device variable
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--discover/device-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 950e730..c661fbe 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -38,7 +38,7 @@ static void context_commit(struct device_handler *handler,
{
struct discover_device *dev = ctx->device;
struct discover_boot_option *opt, *tmp;
- unsigned int i, existing_device;
+ unsigned int i, existing_device = 0;
/* do we already have this device? */
for (i = 0; i < handler->n_devices; i++) {
OpenPOWER on IntegriCloud