Changeset b893cd6 in mainline for uspace/srv/audio/hound/audio_sink.h


Ignore:
Timestamp:
2013-04-03T19:01:53Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aab8e3d3
Parents:
a94de68
Message:

hound: add null checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/audio_sink.h

    ra94de68 rb893cd6  
    5959static inline audio_sink_t * audio_sink_list_instance(link_t *l)
    6060{
    61         return list_get_instance(l, audio_sink_t, link);
     61        return l ? list_get_instance(l, audio_sink_t, link) : NULL;
    6262}
    6363
Note: See TracChangeset for help on using the changeset viewer.