[Commits] [wesnoth/wesnoth] 89fe64: Don't use uninitialized data member for variable i...

GitHub noreply at github.com
Sat Mar 15 19:55:51 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 89fe64e137cfd2503ce5c80e17ffd9c9b921dea9
      https://github.com/wesnoth/wesnoth/commit/89fe64e137cfd2503ce5c80e17ffd9c9b921dea9
  Author: Boldizsár Lipka <lipkab at zoho.com>
  Date:   2014-03-15 (Sat, 15 Mar 2014)

  Changed paths:
    M src/about.cpp

  Log Message:
  -----------
  Don't use uninitialized data member for variable initialization.

Fixes an MSVC warning. Spotted by Anonymissimus.


  Commit: 2f1bd85419d78fe45a27cde4bcc443270a145ea4
      https://github.com/wesnoth/wesnoth/commit/2f1bd85419d78fe45a27cde4bcc443270a145ea4
  Author: anonymissimus <anonymissimus at arcor.de>
  Date:   2014-03-15 (Sat, 15 Mar 2014)

  Changed paths:
    M src/about.cpp

  Log Message:
  -----------
  really fix warning about not initialized variable

The invalid read now was on some later line.
fixes https://gna.org/bugs/index.php?21772
Anyway better to init something incorrectly than to not init it.


Compare: https://github.com/wesnoth/wesnoth/compare/7e5dae165002...2f1bd85419d7


More information about the Commits mailing list