diff options
| -rw-r--r-- | audio/headset.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index 7e2b840d..2e0f6c9c 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -37,6 +37,7 @@  #include <getopt.h>  #include <sys/ioctl.h>  #include <sys/socket.h> +#include <assert.h>  #include <bluetooth/bluetooth.h>  #include <bluetooth/hci.h> @@ -1397,6 +1398,8 @@ static void send_foreach_headset(GSList *devices,  		struct headset *hs = device->headset;  		int ret; +		assert(hs != NULL); +  		if (cmp && cmp(hs) != 0)  			continue;  | 
