Fix the bug of version comparison logic 75/116075/2 accepted/tizen/3.0/common/20170224.125729 accepted/tizen/3.0/ivi/20170224.041431 accepted/tizen/3.0/mobile/20170224.040634 accepted/tizen/3.0/tv/20170224.041039 accepted/tizen/3.0/wearable/20170224.041214 submit/tizen_3.0/20170223.013552
authorjongmyeongko <jongmyeong.ko@samsung.com>
Thu, 23 Feb 2017 01:06:04 +0000 (10:06 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Thu, 23 Feb 2017 01:08:36 +0000 (17:08 -0800)
The minor is changed as zero.

Change-Id: I27b0930fcab5f539695656939ca3889451e0a857
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/pkgmgrinfo_pkginfo.c

index e955d53..ea64f4b 100644 (file)
@@ -1924,7 +1924,7 @@ int __compare_package_version(const char *version, int *major,
        *major = atoi(major_str);
        *minor = atoi(minor_str);
        *macro = 0;
-       *minor = 0;
+       *nano = 0;
        macro_str = strtok_r(NULL, ".", &save_str);
        if (macro_str == NULL) {
                _LOGD("macro version is NULL");