diff options
Diffstat (limited to 'src/tar_type.h')
-rw-r--r-- | src/tar_type.h | 2 |
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); } }; |