Fix an error in OpenVMS-specific code.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Sep 2009 14:50:17 +0000 (17:50 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Sep 2009 14:50:17 +0000 (17:50 +0300)
Thanks to Jouk Jansen.

src/xz/file_io.c

index 0b095f3..b79d0b7 100644 (file)
@@ -83,7 +83,7 @@ io_unlink(const char *name, const struct stat *known_st)
 #      ifdef __VMS
                        // st_ino is an array, and we don't want to
                        // compare st_dev at all.
-                       || memcmp(&new_st.st_ino, &known_st.st_ino,
+                       || memcmp(&new_st.st_ino, &known_st->st_ino,
                                sizeof(new_st.st_ino)) != 0
 #      else
                        // Typical POSIX-like system