changeset 9703 | 30117a5205f4 |
parent 9702 | e69c01e76845 |
--- a/src/tar_type.h Wed Jul 23 21:42:55 2008 +0000 +++ b/src/tar_type.h Thu Jul 24 08:46:34 2008 +0000 @@ -12,6 +12,10 @@ struct TarListEntry { const char *filename; + /* 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) {} ~TarListEntry() { free((void*)this->filename); } };