diff --git a/src/w_wad.c b/src/w_wad.c
index 4d7d930b6103b40096c760d41846cd946a831381..6ed2d50c241121d3ef25e28787adb5d8169bcd9f 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -334,7 +334,6 @@ static restype_t ResourceFileDetect (const char* filename)
 static lumpinfo_t* ResGetLumpsStandalone (FILE* handle, UINT16* numlumps, const char* lumpname)
 {
 	lumpinfo_t* lumpinfo = Z_Calloc(sizeof (*lumpinfo), PU_STATIC, NULL);
-	lumpinfo = Z_Calloc(sizeof (*lumpinfo), PU_STATIC, NULL);
 	lumpinfo->position = 0;
 	fseek(handle, 0, SEEK_END);
 	lumpinfo->size = ftell(handle);