From: Semun Lee Date: Wed, 26 Feb 2020 01:20:02 +0000 (+0900) Subject: Fix wrong pointer references in the test code X-Git-Tag: submit/tizen/20200226.014233^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a596d9f5e07fe87e041044bcce596ac141a1b7b;p=platform%2Fcore%2Fapi%2Fwifi-direct.git Fix wrong pointer references in the test code Change-Id: Ic9991b65cc1ad314c73526f419d8d8d2b7593641 Signed-off-by: Semun Lee --- diff --git a/test/wifi_direct_test.c b/test/wifi_direct_test.c index 474fc21..cfd8247 100644 --- a/test/wifi_direct_test.c +++ b/test/wifi_direct_test.c @@ -2120,8 +2120,10 @@ void process_input(const char *input, gpointer user_data) break; printf("Enter info 2\n"); - if (scanf(" %50ms", &info2) < 1) + if (scanf(" %50ms", &info2) < 1) { free(info1); + info1 = NULL; + } break; case 3: