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

Uses double assignment as suggested by @robertgrimm in #24.
@colszowka @sferik fine with me. Any objections or I'll merge it Nov 11 midday CDT