There are other refactorings for build.c of higher priority IMO than adding braces or refactoring expressions in assign_cmd (which is short). I support using an intermediate variable for common expressions, but this should be done for bigger functions in build.c first.