Fix Nullpointer

This commit is contained in:
PolynomialDivision 2017-07-17 23:36:06 +02:00
parent 70749ab488
commit cfd6944b97
3 changed files with 40 additions and 3 deletions

View file

@ -59,6 +59,11 @@ int main(int argc, char **argv) {
return 1;
}
if (pthread_mutex_init(&send_mutex, NULL) != 0) {
printf("\n mutex init failed\n");
return 1;
}
init_socket_runopts(opt_broadcast_ip, opt_broadcast_port, 1);
pthread_t tid_probe;