Commit 357037f7 authored by Max Kellermann's avatar Max Kellermann

archive/bz2: g_malloc() cannot fail

parent 9715218d
...@@ -91,10 +91,8 @@ bz2_open(char * pathname) ...@@ -91,10 +91,8 @@ bz2_open(char * pathname)
char *name; char *name;
int len; int len;
context = g_malloc(sizeof(bz2_context)); context = g_malloc(sizeof(*context));
if (!context) {
return NULL;
}
//open archive //open archive
if (!input_stream_open(&context->istream, pathname)) { if (!input_stream_open(&context->istream, pathname)) {
g_warning("failed to open an bzip2 archive %s\n",pathname); g_warning("failed to open an bzip2 archive %s\n",pathname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment