dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-abis/+/32372 )
Change subject: e1d: better initialize g_e1d with NULL.
......................................................................
e1d: better initialize g_e1d with NULL.
The global variable g_e1d is populated during the first line update and
the line update checks if the variable is NULL. Let's better initialize
the variable with NULL to be on the safe side.
Change-Id: If3b808e5489bf6a1f5fa4326d7b0277cc66d1334
---
M src/input/e1d.c
1 file changed, 14 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/72/32372/1
diff --git a/src/input/e1d.c b/src/input/e1d.c
index ba7791f..1fd18c9 100644
--- a/src/input/e1d.c
+++ b/src/input/e1d.c
@@ -42,7 +42,7 @@
#define TS_SIGN_ALLOC_SIZE 300
-struct osmo_e1dp_client *g_e1d;
+struct osmo_e1dp_client *g_e1d = NULL;
static int invertbits = 1;
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-abis/+/32372
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: If3b808e5489bf6a1f5fa4326d7b0277cc66d1334
Gerrit-Change-Number: 32372
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange