[#2417] stat structure was not properly initialized