Fix svace issue : 158477 39/103039/1
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 7 Dec 2016 05:51:44 +0000 (14:51 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 7 Dec 2016 05:52:59 +0000 (14:52 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: Idf9c69e24d9684835d764f59a61c1829d351dc98

packaging/mtp-responder.spec
src/mtp_cmd_handler_util.c

index 9ceb5bd00b07aaaca32914af65dd9d8578136c99..93ef8c5bda8040a2ae393206c6d22aafef1a027a 100755 (executable)
@@ -5,7 +5,7 @@ ExcludeArch: %arm aarch64
 
 Name:       mtp-responder
 Summary:    Media Transfer Protocol daemon (responder)
-Version:    0.0.17
+Version:    0.0.18
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index a0c992784e4983459d1999c7f449400f84e49650..c802fcfec96573826a6e4935b19f3b008604841e 100755 (executable)
@@ -1151,7 +1151,7 @@ mtp_err_t _hutil_read_file_data_from_offset(mtp_uint32 obj_handle, off_t offset,
        }
 
        result = _util_file_seek(h_file, offset, SEEK_SET);
-       if (result < 0) {
+       if (result == FALSE) {
                ERR("file seek Fail [%d]\n", errno);
                _util_file_close(h_file);
                return MTP_ERROR_GENERAL;