Skip to content

Commit 65fa2b3

Browse files
committed
tslib.c: fix uninitialized variable access
1 parent 739500c commit 65fa2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tslib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void ReadInputLegacy(InputInfoPtr local)
9393
struct ts_priv *priv = (struct ts_priv *) (local->private);
9494
struct ts_sample samp;
9595
int ret;
96-
int type;
96+
int type = 0;
9797

9898
while ((ret = ts_read(priv->ts, &samp, 1)) == 1) {
9999
ValuatorMask *m = priv->valuators;

0 commit comments

Comments
 (0)