func: void CWE675_Duplicate_Operations_on_Resource__fopen_12_bad() FILE * data ; data = NULL; if ( globalReturnsTrueOrFalse ( ) )  int globalReturnsTrueOrFalse() return ( rand ( ) % 2 ) ; data = fopen ( "BadSource_fopen.txt" , "w+" ); data = fopen ( "GoodSource_fopen.txt" , "w+" ); if ( globalReturnsTrueOrFalse ( ) )  int globalReturnsTrueOrFalse() return ( rand ( ) % 2 ) ; fclose ( data ); 