aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-10-28 01:45:05 +0100
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-10-30 12:21:39 -0700
commit231a109717ba073e53ff71cf16118e5323d041fe (patch)
tree0427a3eb263bdfe0c57c6a92ac0cf6bc6515c25a
parent39bef49511d4e984120a931be57186bb5bd96bd3 (diff)
downloadcrda-231a109717ba073e53ff71cf16118e5323d041fe.tar.gz
crda: fix -pedantic gcc compilation
gcc likes to complain about this, fix that as we're going to get a bit more anal with code here soon as we're moving towards making a library out of reglib. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r--crda.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crda.c b/crda.c
index 2a601eb..4751a39 100644
--- a/crda.c
+++ b/crda.c
@@ -141,13 +141,15 @@ int main(int argc, char **argv)
{
int fd = -1;
int i = 0, j, r;
- char alpha2[3] = {}; /* NUL-terminate */
+ char alpha2[3];
char *env_country;
struct nl80211_state nlstate;
struct nl_cb *cb = NULL;
struct nl_msg *msg;
int finished = 0;
+ memset(alpha2, 0, 3);
+
struct nlattr *nl_reg_rules;
const struct ieee80211_regdomain *rd = NULL;