summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-09-23 15:56:50 -0700
committerDavid 'Digit' Turner <digit@google.com>2009-09-23 15:56:50 -0700
commitbc10cd2900cdb7fed077163b6a33e0f8572b2b19 (patch)
tree3d945a8b4137c23ae15b1246742f352b9378d71a
parentd154954f02691618fdf73a5a97336e64cad37af0 (diff)
downloadbionic-bc10cd2900cdb7fed077163b6a33e0f8572b2b19.zip
bionic-bc10cd2900cdb7fed077163b6a33e0f8572b2b19.tar.gz
bionic-bc10cd2900cdb7fed077163b6a33e0f8572b2b19.tar.bz2
Fix a typo that resulted in a crash in the boot sequence
-rw-r--r--libc/bionic/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c
index ccc91d0..42f5f4c 100644
--- a/libc/bionic/pthread.c
+++ b/libc/bionic/pthread.c
@@ -1138,7 +1138,7 @@ __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, cl
ts->tv_sec--;
ts->tv_nsec += 1000000000;
}
- if ((ts->tv_nsec < 0) || (ts->tv_nsec < 0))
+ if ((ts->tv_nsec < 0) || (ts->tv_sec < 0))
return -1;
return 0;