summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com-on-air_cs-linux/tools/dectshark/scanmode_gui.cpp2
-rw-r--r--com-on-air_cs-linux/tools/dectshark/syncmode_gui.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/com-on-air_cs-linux/tools/dectshark/scanmode_gui.cpp b/com-on-air_cs-linux/tools/dectshark/scanmode_gui.cpp
index 9ef84fa..bcbcac3 100644
--- a/com-on-air_cs-linux/tools/dectshark/scanmode_gui.cpp
+++ b/com-on-air_cs-linux/tools/dectshark/scanmode_gui.cpp
@@ -4,6 +4,8 @@ found_dects founds;
scanmode_gui::scanmode_gui(int x,int y)
{
+ pthread_mutex_init(&mutex,NULL);
+
selected=startpos=displaypos=0;
scrw=x;
diff --git a/com-on-air_cs-linux/tools/dectshark/syncmode_gui.cpp b/com-on-air_cs-linux/tools/dectshark/syncmode_gui.cpp
index 58ce506..ab001c7 100644
--- a/com-on-air_cs-linux/tools/dectshark/syncmode_gui.cpp
+++ b/com-on-air_cs-linux/tools/dectshark/syncmode_gui.cpp
@@ -10,6 +10,8 @@ syncmode_gui::syncmode_gui(int x,int y)
{
int i;
+ pthread_mutex_init(&mutex,NULL);
+
selx=sely=0;
scrw=x;