9
0
Fork 0

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:
Holger Hans Peter Freyther 2012-12-16 10:58:22 +01:00
parent 677fd1e5c8
commit e310310843
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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(&not->guard);
llist_add_tail(_new, not->thread_head);