]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
don't use 'err' uninitialised
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 3 Apr 2008 13:39:27 +0000 (15:39 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Thu, 3 Apr 2008 13:39:27 +0000 (15:39 +0200)
interface.c

index fc8aa5ef0df3ad821ef6b90129b0da18a43b84e3..9d97ad0de49f5b9e1f355f23de10e0b4d3dadf67 100644 (file)
@@ -62,7 +62,7 @@ static int handle_interface_add(struct nl80211_state *state,
        char *name;
        char *mesh_id = NULL;
        enum nl80211_iftype type;
-       int tpset, err;
+       int tpset, err = -ENOBUFS;
        struct nl_msg *msg;
 
        if (argc < 1) {
@@ -136,7 +136,7 @@ static int handle_interface_add(struct nl80211_state *state,
 static int handle_interface_del(struct nl80211_state *state,
                                char *phy, char *dev, int argc, char **argv)
 {
-       int err;
+       int err = -ENOBUFS;
        struct nl_msg *msg;
 
        if (argc) {