fix SENSYS issue. (TNEXT-744) 01/131701/2 accepted/tizen/unified/20170602.154028 submit/tizen/20170601.011624
authorHyihong Chae <hh.chae@samsung.com>
Tue, 30 May 2017 11:19:38 +0000 (20:19 +0900)
committerHyihong Chae <hh.chae@samsung.com>
Tue, 30 May 2017 11:21:31 +0000 (20:21 +0900)
Change-Id: Ia1fb37801da4e72306c9b1522156dda2547bdeec
Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
packaging/mtp-responder.spec
src/util/mtp_thread.c

index 8317525..4d27366 100755 (executable)
@@ -5,7 +5,7 @@ ExcludeArch: %arm aarch64
 
 Name:       mtp-responder
 Summary:    Media Transfer Protocol daemon (responder)
-Version:    0.0.24
+Version:    0.0.25
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index e96d111..e4ba76e 100755 (executable)
@@ -76,9 +76,14 @@ mtp_bool _util_thread_cancel(pthread_t tid)
 {
        mtp_int32 res;
 
+       if (tid == 0) {
+               ERR("tid is NULL\n");
+               return FALSE;
+       }
+
        res = pthread_cancel(tid);
        if (res != 0) {
-               ERR("pthread_cancel  Fail [%d] errno [%d]\n", tid, errno);
+               ERR("pthread_cancel Fail [%d] errno [%d]\n", tid, errno);
                return FALSE;
        }