From fe980831945795e48b4d35a10392346ae01afc6c Mon Sep 17 00:00:00 2001 From: Inaky Perez-Gonzalez Date: Mon, 8 Jun 2009 12:30:14 -0700 Subject: libwimaxll-i2400m: fix i2400m_create() uninitialized usage of 'result' Signed-off-by: Inaky Perez-Gonzalez --- lib/i2400m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i2400m.c b/lib/i2400m.c index 6b96f3d..0cc8d4a 100644 --- a/lib/i2400m.c +++ b/lib/i2400m.c @@ -252,10 +252,10 @@ int i2400m_create(struct i2400m **_i2400m, const char *ifname, int result; struct i2400m *i2400m; + result = -ENOMEM; i2400m = calloc(sizeof(*i2400m), 1); if (i2400m == NULL) goto error_calloc; - result = -ENODEV; i2400m->wmx = wimaxll_open(ifname); if (i2400m->wmx == NULL) { result = -errno; -- cgit v1.2.3