diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2018-04-09 14:21:48 -0700 |
|---|---|---|
| committer | Srinivas Girigowda <sgirigow@codeaurora.org> | 2018-04-09 14:46:04 -0700 |
| commit | 65d4419939b78f13938288c5d8593a0fb8dc32da (patch) | |
| tree | e82e6acfc40f60f5887ff563e59cf7638593e37e | |
| parent | 56722312f6702a235618fd80ab48fe91b8e2899f (diff) | |
qcacld-3.0: Fix compile error for uninitialized variables
The wlan driver produces compilation errors (with some strict build
options).
Fix compile error for uninitialized variables.
Change-Id: I5cf00aeca446270d6ad6c94b6eeefc63149d064e
CRs-Fixed: 2221120
| -rw-r--r-- | core/mac/src/sys/legacy/src/utils/src/parser_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c index 0d49d5e0de65..52cf553b78af 100644 --- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c +++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c @@ -2224,7 +2224,7 @@ sir_validate_and_rectify_ies(tpAniSirGlobal mac_ctx, uint32_t *missing_rsn_bytes) { uint32_t length = SIZE_OF_FIXED_PARAM; - uint8_t *ref_frame; + uint8_t *ref_frame = NULL; /* Frame contains atleast one IE */ if (frame_bytes > (SIZE_OF_FIXED_PARAM + @@ -2244,7 +2244,7 @@ sir_validate_and_rectify_ies(tpAniSirGlobal mac_ctx, * Capability with junk value. To avoid this, add RSN * Capability value with default value. */ - if ((*ref_frame == RSNIEID) && + if (ref_frame && (*ref_frame == RSNIEID) && (length == (frame_bytes + RSNIE_CAPABILITY_LEN))) { /* Assume RSN Capability as 00 */ |
