Commit b66dd7af authored by Martin Lucina's avatar Martin Lucina

zmq_stopwatch_stop: Don't return EFAULT

Function returning unsigned long int cannot return (-1)
parent 2b2accb8
......@@ -765,10 +765,6 @@ unsigned long zmq_stopwatch_stop (void *watch_)
{
uint64_t end = now ();
uint64_t start = *(uint64_t*) watch_;
if (!watch_) {
errno = EFAULT;
return -1;
}
free (watch_);
return (unsigned long) (end - start);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment