From 3cf4431c6638252081d3bbfb6cefcb167bcd41ae Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Mon, 26 Aug 2019 10:18:49 +0200 Subject: [PATCH] Fixed inverted handling of fseek result value in srslte_filesource_seek --- lib/src/phy/io/filesource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/io/filesource.c b/lib/src/phy/io/filesource.c index 11f4f6832..8cf6dad86 100644 --- a/lib/src/phy/io/filesource.c +++ b/lib/src/phy/io/filesource.c @@ -45,7 +45,7 @@ void srslte_filesource_free(srslte_filesource_t *q) { } 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"); } }