stream-restore: With dbus-proto fix segfault if e->device is NULL.
authorJuho Hämäläinen <jusa@hilvi.org>
Tue, 26 Apr 2016 13:11:44 +0000 (16:11 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 29 Apr 2016 12:52:51 +0000 (15:52 +0300)
commit1a1d5086ade973a23872ac1cd42cd9d36943b71c
tree5a0bb03f02d335b1a27334467c114f0d1eca955c
parentd1730ab65a5f769ef135e79f2d33a0a4ec47255e
stream-restore: With dbus-proto fix segfault if e->device is NULL.

If first part of test is false and e->device is NULL pa_streq will
segfault. Fix by using pa_safe_streq, which checks strings for NULL
before doing strcmp.
src/modules/module-stream-restore.c