[Prevent] fix Tizen 35853, and update authors list
authorjaehoon.you <jaehoon.you@samsung.com>
Wed, 9 Jan 2013 06:54:42 +0000 (15:54 +0900)
committerjaehoon.you <jaehoon.you@samsung.com>
Thu, 24 Jan 2013 05:37:52 +0000 (14:37 +0900)
Tizen 35853 : DEADCODE
original code is "assert(chunksize > 0 && chunksize <= trans_unit_size);"
(reference send_chunks() : line 125)
but chunksize already checked before line:1086 (chunksize <= 0)
then, chunksize always bigger than 0 .
so, exclamation mark is moved to another location
and conditional sentence is switched.

Change-Id: I9e5a2f998fb506fd152da856f4c9455f027207a6
Signed-off-by: jaehoon.you <jaehoon.you@samsung.com>
lthor.c

diff --git a/lthor.c b/lthor.c
index c4937d30ed49643bd1b15a051ebe381adeaca2a8..27df43d6292e013f52ac01ede1d7e5c95ab2bb3a 100755 (executable)
--- a/lthor.c
+++ b/lthor.c
@@ -1100,7 +1100,7 @@ int test_tar_entry(struct data_src *tardata)
                        return -1;
                }
 
-               if ((!chunksize > 0 && chunksize <= trans_unit_size)) {
+               if (!(chunksize <= trans_unit_size && chunksize > 0)) {
                        free(chunk);
                        return -1;
                }
@@ -1190,7 +1190,8 @@ int main(int argc, char **argv)
 
        printf("\n");
        printf("Linux Thor downloader, version %s \n", PACKAGE_VERSION);
-       printf("Authors: YoungJin Lee <yj0701.lee@samsung.com>\n\n");
+       printf("Authors: YoungJin Lee <yj0701.lee@samsung.com>, "
+                       "Jaehoon You <jaehoon.you@samsung.com>\n\n");
 
        while (opt < argc) {
                /* check if we're verbose */