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

Sebastian Meiling notifications at github.com
Fri Feb 1 10:31:54 CET 2019


smlng commented 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;

No I can say: "told you so", now you get the:

```
cpu/lpc1768/periph/uart.c:162: warning (nullPointer): Possible null pointer dereference: dev
```

(again)

-- 
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-198988858
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190201/790723e9/attachment.html>


More information about the notifications mailing list