From 92ffad1a72bc8c422426d52ac408bd71242dd047 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 28 Jan 2018 21:30:39 +0000 Subject: Use nullptr as NULL pointer constant instead of NULL or 0. This changes only code, no string literals or comments. --- other/fun/sign.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'other/fun') diff --git a/other/fun/sign.c b/other/fun/sign.c index 0cd8f38e..b24cdae7 100644 --- a/other/fun/sign.c +++ b/other/fun/sign.c @@ -24,8 +24,8 @@ int load_file(char *filename, char **result) int size = 0; FILE *f = fopen(filename, "rb"); - if (f == NULL) { - *result = NULL; + if (f == nullptr) { + *result = nullptr; return -1; // -1 means file opening fail } @@ -88,7 +88,7 @@ int main(int argc, char *argv[]) FILE *f = fopen(argv[4], "wb"); - if (f == NULL) { + if (f == nullptr) { goto fail; } -- cgit v1.2.3