examples/sensorbd_demo: fix uart examples about buffer init
authorJunhwan Park <junhwan.park@samsung.com>
Wed, 30 Aug 2017 02:06:51 +0000 (11:06 +0900)
committersunghan <sh924.chang@samsung.com>
Wed, 20 Sep 2017 08:16:30 +0000 (17:16 +0900)
In the uart example, the initialization of the rx buffer was missing.

Change-Id: Iafdacd16e3f9f4644bb92bc969e6f1d96cdf0d6f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
apps/examples/sensorbd_demo/examples/uart_loopback.c

index bd6eea6..378612e 100644 (file)
@@ -73,7 +73,7 @@ void uartloopback_main(int argc, char *argv[])
                        }
 
                        // rx
-                       char buf_rx[255];
+                       char buf_rx[255] = { 0, };
                        struct timeval tv;
                        fd_set readfds;
                        FD_ZERO(&readfds);