[PATCH] libosmo-abis[master]: call strerror() not on negative value

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Nov 26 08:51:24 UTC 2016


Review at  https://gerrit.osmocom.org/1287

call strerror() not on negative value

Change-Id: I0ba1eab49f93d9b34d162682f2528d106b56d6d6
Fixes: Coverity CID 57857
---
M src/input/misdn.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/87/1287/1

diff --git a/src/input/misdn.c b/src/input/misdn.c
index f72b496..9315e23 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -691,7 +691,7 @@
 		ret = osmo_fd_register(bfd);
 		if (ret < 0) {
 			fprintf(stderr, "could not register FD: %s\n",
-				strerror(ret));
+				strerror(-ret));
 			return ret;
 		}
 	}

-- 
To view, visit https://gerrit.osmocom.org/1287
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0ba1eab49f93d9b34d162682f2528d106b56d6d6
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list