Fix "warning: possibly useless use of a variable in void context"

Uses double assignment as suggested by @robertgrimm in #24.
Fixed in 43141a04e10e7922da0e6227c223ec8d777d93f7