summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/tests/system.c')
-rw-r--r--nsprpub/pr/tests/system.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/nsprpub/pr/tests/system.c b/nsprpub/pr/tests/system.c
index 60d318ed8..85b5e2e50 100644
--- a/nsprpub/pr/tests/system.c
+++ b/nsprpub/pr/tests/system.c
@@ -35,8 +35,12 @@ int main(int argc, char **argv)
for (cmd = PR_SI_HOSTNAME; cmd <= PR_SI_ARCHITECTURE; Incr(&cmd))
{
rv = PR_GetSystemInfo(cmd, info, SYS_INFO_BUFFER_LENGTH);
- if (PR_SUCCESS == rv) PR_fprintf(output, "%s: %s\n", tag[cmd], info);
- else PL_FPrintError(output, tag[cmd]);
+ if (PR_SUCCESS == rv) {
+ PR_fprintf(output, "%s: %s\n", tag[cmd], info);
+ }
+ else {
+ PL_FPrintError(output, tag[cmd]);
+ }
}
PR_DELETE(info);