Skip to content

Commit 231a109

Browse files
committed
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>
1 parent 39bef49 commit 231a109

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crda.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,15 @@ int main(int argc, char **argv)
141141
{
142142
int fd = -1;
143143
int i = 0, j, r;
144-
char alpha2[3] = {}; /* NUL-terminate */
144+
char alpha2[3];
145145
char *env_country;
146146
struct nl80211_state nlstate;
147147
struct nl_cb *cb = NULL;
148148
struct nl_msg *msg;
149149
int finished = 0;
150150

151+
memset(alpha2, 0, 3);
152+
151153
struct nlattr *nl_reg_rules;
152154
const struct ieee80211_regdomain *rd = NULL;
153155

0 commit comments

Comments
 (0)