Merge pull request #748 from ggatis/patch-1

Update hackrf_sweep.c
This commit is contained in:
Michael Ossmann
2021-01-27 11:38:45 -07:00
committed by GitHub

View File

@ -757,7 +757,7 @@ int main(int argc, char** argv) {
fprintf(stderr, "hackrf_exit() done\n");
}
if(fd != NULL) {
if ( ( fd != NULL ) && ( fd != stdout ) ) {
fclose(fd);
fd = NULL;
fprintf(stderr, "fclose(fd) done\n");