> Bleh, I see. Timeout is a pointer. Would have been more > clear if the code was: timeout == NULL I am with you on this :) Personally I always use NULL instead of 0 when comparing a pointer for exactly same reason. Anyway, I just changed the timeout argument so it is passed as a reference instead of being a pointer. Thanks, Pavlin