diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-02 21:01:38 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-02 21:01:38 +0100 |
commit | f7d30133221896638f7bf4f66c504255c4b14f48 (patch) | |
tree | 5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/freeif.c | |
parent | 26b297510a11758727438df4669357a2a2bc42ce (diff) | |
download | UXP-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/freeif.c')
-rw-r--r-- | nsprpub/pr/tests/freeif.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nsprpub/pr/tests/freeif.c b/nsprpub/pr/tests/freeif.c index edf005e49..1d38d0e31 100644 --- a/nsprpub/pr/tests/freeif.c +++ b/nsprpub/pr/tests/freeif.c @@ -27,16 +27,20 @@ int main(int argc, char **argv) char *ptr = NULL; /* this fails to compile with the old definition of PR_DELETE */ - if (foo) + if (foo) { PR_DELETE(ptr); - else + } + else { Noop(); + } /* this nests incorrectly with the old definition of PR_FREEIF */ - if (foo) + if (foo) { PR_FREEIF(ptr); - else + } + else { Fail(); + } printf("PASS\n"); return 0; |