summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/system.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
commitf7d30133221896638f7bf4f66c504255c4b14f48 (patch)
tree5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/system.c
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
downloadUXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.lz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.xz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.zip
Issue #1338 - Part 1: Update NSPR to 4.24
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);