]> git.saurik.com Git - apple/libc.git/blobdiff - gen/uname.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / gen / uname.c
index c4ebb079c8e421b1d8baf7cf81bb45f6a9697b55..8ed2924cae64d191a6681e87449078de48ec9bcd 100644 (file)
@@ -72,12 +72,13 @@ uname(name)
                rval = -1;
        else
                for (p = name->version; len--; ++p)
-                       if (*p == '\n' || *p == '\t')
-                               if (len > 1)
+                       if (*p == '\n' || *p == '\t') {
+                               if (len > 1) {
                                        *p = ' ';
-                               else
+                               } else {
                                        *p = '\0';
-
+                               }
+                       }
        mib[0] = CTL_HW;
        mib[1] = HW_MACHINE;
        len = sizeof(name->machine);