Skip to content

Commit

Permalink
Merge pull request #9682 from cladmi/2018.07/pr/loramac_patch
Browse files Browse the repository at this point in the history
semtech-loramac: fix uninitialized datarate [backport 2018.07]
  • Loading branch information
cladmi authored Aug 2, 2018
2 parents 03e9932 + 81d99f1 commit e34c417
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkg/semtech-loramac/patches/0004-fix-uninitialized-variable.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 9bf864033dfe765f0e06603e273c4665af777a1a Mon Sep 17 00:00:00 2001
From: Jose Alamos <jose.alamos@haw-hamburg.de>
Date: Tue, 24 Jul 2018 11:47:59 +0200
Subject: [PATCH] fix uninitialized variable

---
src/mac/LoRaMac.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/mac/LoRaMac.c b/src/mac/LoRaMac.c
index 4cb2c50..46f7661 100644
--- a/src/mac/LoRaMac.c
+++ b/src/mac/LoRaMac.c
@@ -3266,6 +3266,8 @@ LoRaMacStatus_t LoRaMacMcpsRequest( McpsReq_t *mcpsRequest )
break;
}
default:
+ /* Shouldn't happen */
+ datarate = 0;
break;
}

--
2.16.0

0 comments on commit e34c417

Please sign in to comment.