Skip to content

Commit

Permalink
Merge branch 'fix' of https://github.com/Young-X/openjpeg into fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YangY-Xiao committed Apr 15, 2019
2 parents 3aef207 + e5640c7 commit 2e7029d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/openjpip/channel_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ channel_param_t * search_channel(const char cid[],
{
channel_param_t *foundchannel;

if (!cid)
return NULL;

foundchannel = channellist->first;

while (foundchannel != NULL) {
Expand Down
6 changes: 6 additions & 0 deletions src/lib/openjpip/target_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ target_param_t * search_target(const char targetname[],
{
target_param_t *foundtarget;

if (!targetname)
return NULL;

foundtarget = targetlist->first;

while (foundtarget != NULL) {
Expand All @@ -244,6 +247,9 @@ target_param_t * search_targetBytid(const char tid[],
{
target_param_t *foundtarget;

if (!tid)
return NULL;

foundtarget = targetlist->first;

while (foundtarget != NULL) {
Expand Down

0 comments on commit 2e7029d

Please sign in to comment.