diff --git a/src/smblib/smbdefs.h b/src/smblib/smbdefs.h
index ad6974c1041dbf9517ab979d2c3ba921356b1fa4..5d41aabd9b5d125e60325b2f8e126582762274a9 100644
--- a/src/smblib/smbdefs.h
+++ b/src/smblib/smbdefs.h
@@ -408,14 +408,9 @@ struct hash_info {
 };
 
 typedef struct {		/* File index record */
-	union {
-		idxrec_t	idx;
-		struct {
-			idxrec_t idx_;	// only here for storage, no need to reference
-			char name[SMB_FILEIDX_NAMELEN + 1];
-			struct hash_info hash;
-		};
-	};
+	idxrec_t	idx;
+	char name[SMB_FILEIDX_NAMELEN + 1];
+	struct hash_info hash;
 } fileidxrec_t;
 #define SIZEOF_SMB_FILEIDXREC_T 128
 										/* valid bits in hashflags_t		*/