[wesnoth-commits] [wesnoth/wesnoth] 6c6dee: log/windows: Guard against null pointer dereference

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


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

  Changed paths:
    M src/log_windows.cpp

  Log Message:
  -----------
  log/windows: Guard against null pointer dereference

This is semantically correct since we can't claim we own a console
before we find out if we have one or need to set one up.

Nobody should be calling using_own_console() before
early_log_file_setup() finishes, but you never know. People in this
project have surprised me before.





More information about the Commits mailing list