summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_program.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 15:11:41 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:44:00 +0000
commit0bf371856cee8e5b028af672931561ad21ca377c (patch)
treed31c068feb27ff881dab291d7d31ceba2672e9c1 /src/lib/edje/edje_program.c
parenta492851aed99d63240bef7cad170c53dad739b55 (diff)
edje program - warn - handle theoretical null seat string
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_program.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c
index 562c3964dd..36bf67c3c4 100644
--- a/src/lib/edje/edje_program.c
+++ b/src/lib/edje/edje_program.c
@@ -1252,6 +1252,7 @@ _edje_seat_emit(Edje *ed, Efl_Input_Device *dev, const char *sig, const char *sr
1252 Efl_Input_Device *seat = NULL; 1252 Efl_Input_Device *seat = NULL;
1253 char buf[128]; 1253 char buf[128];
1254 char *sname; 1254 char *sname;
1255 const char *s;
1255 1256
1256 if (dev) seat = efl_input_device_seat_get(dev); 1257 if (dev) seat = efl_input_device_seat_get(dev);
1257 if (seat) 1258 if (seat)
@@ -1267,7 +1268,9 @@ _edje_seat_emit(Edje *ed, Efl_Input_Device *dev, const char *sig, const char *sr
1267 * the signal belongs to a seat */ 1268 * the signal belongs to a seat */
1268 if (!seat) return; 1269 if (!seat) return;
1269 1270
1270 snprintf(buf, sizeof(buf), "seat,%s,%s", _edje_seat_name_get(ed, seat), sig); 1271 s = _edje_seat_name_get(ed, seat);
1272 if (!s) s = "";
1273 snprintf(buf, sizeof(buf), "seat,%s,%s", s, sig);
1271 _edje_emit_full_data(ed, buf, src, mdata); 1274 _edje_emit_full_data(ed, buf, src, mdata);
1272 _edje_signal_data_free(mdata); 1275 _edje_signal_data_free(mdata);
1273} 1276}