comparison src/midifile.c @ 31:416346c6dc74

Add fp handle check.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 Aug 2013 19:18:40 +0300
parents 26741527f3b7
children a14cc6c5d7ef
comparison
equal deleted inserted replaced
30:26741527f3b7 31:416346c6dc74
436 bValidFile = TRUE; 436 bValidFile = TRUE;
437 } 437 }
438 } 438 }
439 } 439 }
440 440
441 if (fp != NULL)
441 fclose(fp); 442 fclose(fp);
442 } 443 }
443 444
444 if (!bValidFile) 445 if (!bValidFile)
445 { 446 {