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

Uses double assignment as suggested by @robertgrimm in #24.
Per @robertgrimm’s suggestion, this should include a comment explaining why this is necessary.