diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index b5ab9500..f1b0e978 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -192,7 +192,7 @@ rcv_load_file(rcv_t *rcv, const char *fname) } } - (void)fread(rcv->buf, sizeof(char), rcv->len, file); + (void)!fread(rcv->buf, sizeof(char), rcv->len, file); rcv->buf[rcv->len] = '\0'; fclose(file); rcv->ptr = rcv->buf;