[riot-notifications] [RIOT-OS/RIOT] cpu/lpc1768: fix uninitialized variable (#9908)

Sebastian Meiling notifications at github.com
Fri Feb 1 10:33:05 CET 2019


smlng requested changes on this pull request.



> @@ -140,7 +140,7 @@ static int init_base(uart_t uart, uint32_t baudrate)
 
 void uart_write(uart_t uart, const uint8_t *data, size_t len)
 {
-    LPC_UART_TypeDef *dev;
+    LPC_UART_TypeDef *dev = NULL;

you need an `if (dev) {` around the `for` loop 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/9908#pullrequestreview-198989199
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190201/9727afe9/attachment.html>


More information about the notifications mailing list