[wesnoth-commits] [wesnoth/wesnoth] f4815f: log/windows: Fix missing class member initializer

Iris Morelle noreply at github.com
Tue Oct 20 00:21:33 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f4815fae78b5f89f48e735978371213af9df6c6a
      https://github.com/wesnoth/wesnoth/commit/f4815fae78b5f89f48e735978371213af9df6c6a
  Author: Iris Morelle <shadowm at wesnoth.org>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M changelog.md
    M src/log_windows.cpp

  Log Message:
  -----------
  log/windows: Fix missing class member initializer

This had the confusing side-effect of making some code in wesnoth.cpp
believe it was safe to prompt the user to press Enter when NOT using
--wconsole on my system, because the flag ended up with a true value by
default.

This is why you don't leave integral-type variables uninitialized, ever.





More information about the Commits mailing list