[Commits] [wesnoth/wesnoth] ed860b: addon/mg: Drop superfluous NULL pointer check

GitHub noreply at github.com
Wed Nov 19 03:13:08 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ed860bc9ba9fa63269f679f2bdb05d41fef26bb2
      https://github.com/wesnoth/wesnoth/commit/ed860bc9ba9fa63269f679f2bdb05d41fef26bb2
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2014-11-19 (Wed, 19 Nov 2014)

  Changed paths:
    M src/addon/manager_ui.cpp

  Log Message:
  -----------
  addon/mg: Drop superfluous NULL pointer check

update_all_button's value is obtained from operator new, which will
throw if the allocation fails, so it can never be NULL in subsequent
statements.

Found by coverity.





More information about the Commits mailing list