summaryrefslogtreecommitdiff
path: root/src/tar_type.h
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-04-10 22:07:06 +0100
committerMichael Lutz <michi@icosahedron.de>2019-04-10 23:22:20 +0200
commit7c8e7c6b6e16d4a26259a676db32d8776b99817e (patch)
tree99f134b7e66367cf11e10bc5061896eab4a3264f /src/tar_type.h
parent3b4f224c0bc50e7248050d4bcbb6d83fd510c1cc (diff)
downloadopenttd-7c8e7c6b6e16d4a26259a676db32d8776b99817e.tar.xz
Codechange: Use null pointer literal instead of the NULL macro
Diffstat (limited to 'src/tar_type.h')
-rw-r--r--src/tar_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tar_type.h b/src/tar_type.h
index 6306fb650..14b23aea6 100644
--- a/src/tar_type.h
+++ b/src/tar_type.h
@@ -25,7 +25,7 @@ struct TarListEntry {
/* MSVC goes copying around this struct after initialisation, so it tries
* to free filename, which isn't set at that moment... but because it
* initializes the variable with garbage, it's going to segfault. */
- TarListEntry() : filename(NULL), dirname(NULL) {}
+ TarListEntry() : filename(nullptr), dirname(nullptr) {}
~TarListEntry() { free(this->filename); free(this->dirname); }
};