Skip to content

Commit

Permalink
again...
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Aug 3, 2023
1 parent 475a401 commit 5d16c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funcube.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ double funcube_tune(struct frontend * const frontend,double const freq){
if(sdr->tunestate == NULL){
char *tmp = NULL;
int r = asprintf(&tmp,"%s/tune-funcube.%d",VARDIR,sdr->number);
if(r != 0 && tmp != NULL){
if(r > 0 && tmp != NULL){
sdr->tunestate = fopen(tmp,"r+");
if(!sdr->tunestate)
fprintf(stdout,"Can't open tuner state file %s: %s\n",tmp,strerror(errno));
Expand Down

0 comments on commit 5d16c4c

Please sign in to comment.