projects
/
tools
/
lthor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab5f26
)
Fix uninitialized data in error ret value
96/178296/3
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Wed, 9 May 2018 05:27:05 +0000
(14:27 +0900)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Fri, 18 May 2018 03:30:19 +0000
(12:30 +0900)
There is uninitialized data issue in static analysis tool result.
Fix the uninitialized data in error ret value.
Change-Id: I7e5e0f6fa372c125c5ce6eb8df321cb08919b9cf
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
libthor/thor_tar.c
patch
|
blob
|
history
diff --git
a/libthor/thor_tar.c
b/libthor/thor_tar.c
index f7bb78ba9a4442ebbbcb6d065566a18337d69167..c0a1fa1902110c1945a08a4a5276072366bb3bc9 100644
(file)
--- a/
libthor/thor_tar.c
+++ b/
libthor/thor_tar.c
@@
-119,8
+119,10
@@
static int tar_prep_read(const char *path, struct archive **archive,
return -ENOMEM;
ae = archive_entry_new();
- if (!ae)
+ if (!ae) {
+ ret = -ENOMEM;
goto read_finish;
+ }
archive_read_support_format_tar(ar);
archive_read_support_filter_gzip(ar);