Safely close fp

This commit is contained in:
Aram
2016-05-03 17:32:39 +02:00
parent 2f47e0424b
commit 0caa5139bb

View File

@ -652,7 +652,9 @@ int main (int argc, const char * argv[]) {
pthread_join(prediction_thread, 0);
alarm(0);
fclose(fp);
if(fp){
fclose(fp);
}
nfc_close(pnd);
if(!space){