tag 490824 patch
stop

At http://www.semicomplete.com/projects/xdotool/ 
is this text:

|Jarrod posted at Fri Jul 4 00:00:57 2008...
|Thanks for making such a great tool public.
|
|Just thought I'd pass on a little unexpected feature I found: on line
|549 of xdo.c (version 20080606) ret is not being initialized to 0. On my
|system this results in xdo_keysequence reporting an error when in fact
|everything has (as far as I can tell) worked fine.
|
|Cheers.

On my system I have the same exprience,
including the 'as far as I can tell'.

This is the patch that Jarrod suggested:

--- xdotool-20080606-original/xdo.c     2008-06-06 08:50:15.000000000 +0200
+++ xdotool-20080606/xdo.c      2008-07-14 16:22:59.000000000 +0200
@@ -546,7 +546,7 @@
 }
 
 int xdo_keysequence(xdo_t *xdo, char *keyseq) {
-  int ret;
+  int ret = 0;
   ret += _xdo_keysequence_do(xdo, keyseq, True);
   ret += _xdo_keysequence_do(xdo, keyseq, False);
   return ret;


When applied,
I don't get the "xdo_keysequence reported an error for string 'AnyKey'"
any more.

Please take the patch upstream.


Cheers
Geert Stappers



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to