mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
stream-restore: Preventative initialistion to NULL
There is not technically a bug here due to the early return and the knowledge that one of the if blocks will definitely be run, but this makes sure we don't call free on uninitialised data or do anything else suitibly daft. Also helps when you copy the code and change it slightly and don't realise you've left things open...
This commit is contained in:
parent
64979385e0
commit
42b30e1aa2
1 changed files with 2 additions and 2 deletions
|
|
@ -281,8 +281,8 @@ static pa_bool_t entries_equal(const struct entry *a, const struct entry *b) {
|
|||
|
||||
static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint32_t idx, void *userdata) {
|
||||
struct userdata *u = userdata;
|
||||
struct entry entry, *old;
|
||||
char *name;
|
||||
struct entry entry, *old = NULL;
|
||||
char *name = NULL;
|
||||
pa_datum key, data;
|
||||
|
||||
pa_assert(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue