mgw: Always disable the writing for the socket notifier, initialize variable
This was spotted while verifying the RSIP code using valgrind.
This commit is contained in:
parent
677fd1e5c8
commit
e310310843
|
@ -802,8 +802,8 @@ static struct mgcp_ss7 *mgcp_ss7_init(struct mgcp_config *cfg)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NO_UNIPORTE
|
||||
conf->cmd_queue->no_write = 1;
|
||||
#ifndef NO_UNIPORTE
|
||||
pthread_create(&conf->thread, NULL, start_uniporte, conf);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ struct thread_notifier *thread_notifier_alloc()
|
|||
|
||||
void thread_safe_add(struct thread_notifier *not, struct llist_head *_new)
|
||||
{
|
||||
char c;
|
||||
char c = 1;
|
||||
pthread_mutex_lock(¬->guard);
|
||||
|
||||
llist_add_tail(_new, not->thread_head);
|
||||
|
|
Reference in New Issue