]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-misc.c
- (dtucker) [openbsd-compat/fake-rfc2553.h] rename ssh_gai_strerror hack
[openssh.git] / openbsd-compat / bsd-misc.c
index bea3144bda5ac71dd499970e0350b71308f17be5..55f100ac04328624fee68e4763df1b864e2ea4e7 100644 (file)
@@ -158,7 +158,8 @@ int nanosleep(const struct timespec *req, struct timespec *rem)
                tremain.tv_sec = 0;
                tremain.tv_usec = 0;
        }
-       TIMEVAL_TO_TIMESPEC(&tremain, rem)
+       if (rem != NULL)
+               TIMEVAL_TO_TIMESPEC(&tremain, rem)
 
        return(rc);
 }
This page took 0.064656 seconds and 4 git commands to generate.