dexter has uploaded this change for review.
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 change 32372. To unsubscribe, or for help writing mail filters, visit settings.