[MERGED] 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 09:08:37 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: call strerror() not on negative value
......................................................................


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(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: I0ba1eab49f93d9b34d162682f2528d106b56d6d6
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list