aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/asustrx.c
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-04-09 09:21:25 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-04-09 10:46:15 +0200
commit052a30d65e90ac9b3359f4a23aa3024d102c178c (patch)
treed859432c8f94883220be2d48e0d8dc84f10c620d /tools/firmware-utils/src/asustrx.c
parenta2f66229450dc2f7647c19ac83f3948e809406c2 (diff)
downloadupstream-052a30d65e90ac9b3359f4a23aa3024d102c178c.tar.gz
upstream-052a30d65e90ac9b3359f4a23aa3024d102c178c.tar.bz2
upstream-052a30d65e90ac9b3359f4a23aa3024d102c178c.zip
firmware-utils: fix -Wmaybe-uninitialized warnings
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/asustrx.c')
-rw-r--r--tools/firmware-utils/src/asustrx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/asustrx.c b/tools/firmware-utils/src/asustrx.c
index b3daeedcfd..04af9a184a 100644
--- a/tools/firmware-utils/src/asustrx.c
+++ b/tools/firmware-utils/src/asustrx.c
@@ -150,7 +150,8 @@ static void usage() {
int main(int argc, char **argv) {
struct trx_header hdr;
struct asustrx_tail tail = { };
- FILE *in, *out;
+ FILE *out = NULL;
+ FILE *in = NULL;
uint8_t buf[1024];
size_t bytes;
size_t length = 0;