Fixed inverted handling of fseek result value in srslte_filesource_seek

This commit is contained in:
Robert Falkenberg 2019-08-26 10:18:49 +02:00 committed by Andre Puschmann
parent dd613c1514
commit 3cf4431c66
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ void srslte_filesource_free(srslte_filesource_t *q) {
} }
void srslte_filesource_seek(srslte_filesource_t *q, int pos) { void srslte_filesource_seek(srslte_filesource_t *q, int pos) {
if (!fseek(q->f, pos, SEEK_SET)){ if (fseek(q->f, pos, SEEK_SET) != 0){
perror("srslte_filesource_seek"); perror("srslte_filesource_seek");
} }
} }