diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-02 20:35:31 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-02 20:35:31 +0200 |
commit | b03de23120b2a45138fa99178b962198b5b0324e (patch) | |
tree | 0d4673c1797e9ba5e8a9b82a1c0d647c01d92fda /tests/osmo-pcap-test | |
parent | 5e8fab1419b769783bbedb21d65d997a2d61ee1c (diff) |
tests: osmux: initialize input handler before first run
Make sure we don't segfault due to uninitiliazed handler.
Diffstat (limited to 'tests/osmo-pcap-test')
-rw-r--r-- | tests/osmo-pcap-test/osmux_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/osmo-pcap-test/osmux_test.c b/tests/osmo-pcap-test/osmux_test.c index e741a9a..f217635 100644 --- a/tests/osmo-pcap-test/osmux_test.c +++ b/tests/osmo-pcap-test/osmux_test.c @@ -151,11 +151,11 @@ int main(int argc, char *argv[]) osmo_pcap.timer.cb = osmo_pcap_pkt_timer_cb; + osmux_xfrm_input_init(&h_input); + /* first run */ osmo_pcap_pkt_timer_cb(NULL); - osmux_xfrm_input_init(&h_input); - while(1) { osmo_select_main(0); } |