Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gdtoa Add missing {} around two "if (b == NULL)" ch...



details:   https://anonhg.NetBSD.org/src/rev/2c942b0ce35a
branches:  trunk
changeset: 779284:2c942b0ce35a
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Tue May 15 18:10:02 2012 +0000

description:
Add missing {} around two "if (b == NULL)" checks which were added in r1.5.

diffstat:

 lib/libc/gdtoa/dtoa.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 550476416631 -r 2c942b0ce35a lib/libc/gdtoa/dtoa.c
--- a/lib/libc/gdtoa/dtoa.c     Tue May 15 17:51:51 2012 +0000
+++ b/lib/libc/gdtoa/dtoa.c     Tue May 15 18:10:02 2012 +0000
@@ -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 @@
                                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;



Home | Main Index | Thread Index | Old Index