From: Michael Tremer Date: Tue, 25 Jul 2023 11:54:29 +0000 (+0000) Subject: libpakfire: config: Use better return codes X-Git-Tag: 0.9.29~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=204f224ab2a752a6c4baedfd7cbc439531c5f54b;p=pakfire.git libpakfire: config: Use better return codes Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/config.c b/src/libpakfire/config.c index e1699af87..327b2605f 100644 --- a/src/libpakfire/config.c +++ b/src/libpakfire/config.c @@ -441,8 +441,7 @@ int pakfire_config_read(struct pakfire_config* config, FILE* f) { if (isspace(*line)) { // We cannot assign this value anywhere if (!*key) { - errno = EINVAL; - r = 1; + r = -EINVAL; goto ERROR; }