Project

General

Profile

Actions

Bug #9915

open

nwam compares pthread_mutex_init return to -1

Added by Rich Lowe almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
networking
Start date:
2018-10-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

pthread_mutex_init(3C) returns an errno value, nwam compares the return to -1 to check for failure. This is wrong, it should check that it is equal to 0, rather than is not equal to -1 in nwamd_object_init()

No data to display

Actions

Also available in: Atom PDF