Fix Segmentation fault while data in Package.gz is not good
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 22 Sep 2009 16:07:19 +0000 (16:07 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 22 Sep 2009 16:07:19 +0000 (16:07 +0000)
commit018b48569297b7319cad88d8e94e2fb406304117
treea5445bdb4898787e746d78876c2df5bd5abc205b
parentfc7384c7d44650e9caa25a2f57c05ae9fea7d870
Fix Segmentation fault while data in Package.gz is not good

While setting up a personal opkg feed, I encountered a crash in opgk
when trying to install the package from the repository. Instead of an
error message from opkg, it just gave me "Segmentation fault" and
exited.

Thanks to EdorFaus <edorfaus@gmail.com>
http://groups.google.com/group/opkg-devel/browse_thread/thread/9620711475fa98d2

git-svn-id: http://opkg.googlecode.com/svn/trunk@218 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
libopkg/opkg_download.c