[rtems commit] untar: Fix use of uninitialized variable

Sebastian Huber sebh at rtems.org
Fri Jul 28 11:32:20 UTC 2017


Module:    rtems
Branch:    master
Commit:    f1355f2211d38bd01194c23bf3ffde08211c1ddc
Changeset: http://git.rtems.org/rtems/commit/?id=f1355f2211d38bd01194c23bf3ffde08211c1ddc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 28 13:31:51 2017 +0200

untar: Fix use of uninitialized variable

---

 cpukit/libmisc/untar/untar_tgz.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/libmisc/untar/untar_tgz.c b/cpukit/libmisc/untar/untar_tgz.c
index 1ab7ec9..ecbd067 100644
--- a/cpukit/libmisc/untar/untar_tgz.c
+++ b/cpukit/libmisc/untar/untar_tgz.c
@@ -65,6 +65,8 @@ int Untar_FromGzChunk_Print(
       if (untar_succesful != UNTAR_SUCCESSFUL){
         return untar_succesful;
       }
+    } else {
+      untar_succesful = UNTAR_GZ_INFLATE_FAILED
     }
   } while (ctx->strm.avail_out == 0 && ctx->strm.avail_in > 0
       && status == Z_OK);



More information about the vc mailing list