src/session.cpp cleanup:
Declaration and assignment of local variables in one line.
(this *should* fix bug #1101405)
Use pre- instead of postfix increments.
Added and removed newlines.
Added missing break (just a style issue).
Fixed indentation.
(LP: #1101405). Fixes: https://bugs.launchpad.net/bugs/1101405.
Approved by PS Jenkins bot, Sam Spilsbury.