From 39680ffd261d7a440c8e9c11f692b227052468f5 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 28 Apr 2020 12:05:15 +0200 Subject: [PATCH] rrc_asn1_decoder: fix uninit var --- lib/test/asn1/rrc_asn1_decoder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/test/asn1/rrc_asn1_decoder.cc b/lib/test/asn1/rrc_asn1_decoder.cc index f3cbc7b67..b70474ca7 100644 --- a/lib/test/asn1/rrc_asn1_decoder.cc +++ b/lib/test/asn1/rrc_asn1_decoder.cc @@ -65,12 +65,12 @@ void usage(char* prog) int main(int argc, char** argv) { - FILE* fd; + FILE* fd = NULL; SRSASN_CODE err_code = SRSASN_ERROR_DECODE_FAIL; - uint8_t* rrc_msg; + uint8_t* rrc_msg = NULL; int verbose = 0; - char* file; + char* file = NULL; int type = -1; if (argc < 2) {