aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 16:12:50 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 16:25:07 +0200
commit3ecb2bb60472ea291a5f13b4babe6fd9a7fba028 (patch)
treef8a4a0e2bec4a6e6d5c791d78eb3b4c45f45b094 /src
parentffe1d2e1e0bc99debf5cc826c43632680d969825 (diff)
sysmobts: Initialize fd with an invalid fd
Initialize the ucinfo with an invalid fd to prevent writing on fd=0 by accident.
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
index e3cd104b..e5a2c800 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c
@@ -51,7 +51,8 @@ struct ucinfo {
static struct uc ucontrol0 = {
.id = 0,
- .path = "/dev/ttyS0"
+ .path = "/dev/ttyS0",
+ .fd = -1,
};
/**********************************************************************