Skip to content
Snippets Groups Projects
Commit c4cf4260 authored by Tommy Olofsson's avatar Tommy Olofsson
Browse files

Dont deref. NULL.

parent 6eede51a
Branches
No related tags found
No related merge requests found
...@@ -716,9 +716,10 @@ struct labcomm2014_decoder *labcomm2014_decoder_new( ...@@ -716,9 +716,10 @@ struct labcomm2014_decoder *labcomm2014_decoder_new(
LABCOMM_SIGNATURE_ARRAY_INIT(result->local_ref, LABCOMM_SIGNATURE_ARRAY_INIT(result->local_ref,
const struct labcomm2014_signature*); const struct labcomm2014_signature*);
LABCOMM_SIGNATURE_ARRAY_INIT(result->remote_to_local_ref, int); LABCOMM_SIGNATURE_ARRAY_INIT(result->remote_to_local_ref, int);
}
return &(result->decoder); return &(result->decoder);
} }
return NULL;
}
const struct labcomm2014_sample_ref *labcomm2014_decoder_get_sample_ref( const struct labcomm2014_sample_ref *labcomm2014_decoder_get_sample_ref(
......
...@@ -420,9 +420,10 @@ static struct labcomm2014_encoder *internal_encoder_new( ...@@ -420,9 +420,10 @@ static struct labcomm2014_encoder *internal_encoder_new(
labcomm2014_writer_end(result->encoder.writer, labcomm2014_writer_end(result->encoder.writer,
result->encoder.writer->action_context); result->encoder.writer->action_context);
} }
}
return &(result->encoder); return &(result->encoder);
} }
return NULL;
}
struct labcomm2014_encoder *labcomm2014_encoder_new( struct labcomm2014_encoder *labcomm2014_encoder_new(
struct labcomm2014_writer *writer, struct labcomm2014_writer *writer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment