diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-21 16:12:50 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-21 16:25:07 +0200 |
commit | 3ecb2bb60472ea291a5f13b4babe6fd9a7fba028 (patch) | |
tree | f8a4a0e2bec4a6e6d5c791d78eb3b4c45f45b094 /src/osmo-bts-sysmo | |
parent | ffe1d2e1e0bc99debf5cc826c43632680d969825 (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/osmo-bts-sysmo')
-rw-r--r-- | src/osmo-bts-sysmo/misc/sysmobts_mgr_2050.c | 3 |
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, }; /********************************************************************** |