Module Name: src
Committed By: alnsn
Date: Tue May 15 18:10:02 UTC 2012
Modified Files:
src/lib/libc/gdtoa: dtoa.c
Log Message:
Add missing {} around two "if (b == NULL)" checks which were added in r1.5.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/gdtoa/dtoa.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gdtoa/dtoa.c
diff -u src/lib/libc/gdtoa/dtoa.c:1.7 src/lib/libc/gdtoa/dtoa.c:1.8
--- src/lib/libc/gdtoa/dtoa.c:1.7 Mon Mar 21 19:46:41 2011
+++ src/lib/libc/gdtoa/dtoa.c Tue May 15 18:10:02 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: dtoa.c,v 1.7 2011/03/21 19:46:41 christos Exp $ */
+/* $NetBSD: dtoa.c,v 1.8 2012/05/15 18:10:02 alnsn Exp $ */
/****************************************************************
@@ -536,16 +536,18 @@ dtoa
Bfree(b);
b = b1;
}
- if (( j = b5 - m5 )!=0)
+ if (( j = b5 - m5 )!=0) {
b = pow5mult(b, j);
if (b == NULL)
return NULL;
+ }
}
- else
+ else {
b = pow5mult(b, b5);
if (b == NULL)
return NULL;
}
+ }
S = i2b(1);
if (S == NULL)
return NULL;