]> git.sesse.net Git - stockfish/commit
Fix a coverity scan warning
authorMarco Costalba <mcostalba@gmail.com>
Sun, 18 Jan 2015 09:41:56 +0000 (10:41 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 18 Jan 2015 09:41:56 +0000 (10:41 +0100)
commitf7d8ea3866c26df10617e97513e906d1f5a5b833
tree97649c4035428d6cefc018bcda41c43a6e6569e8
parentf53aea45e3230239d358d4d35357c9ee6bf6fb54
Fix a coverity scan warning

Coverity scan warns about uninitialized 'sf' argument when
calling probe(). Actually it is a false positive because
argument is passed by reference and assigned inside
probe(). Nevertheless it is a hint that fucntion signature
is a bit tricky, so rewrite it in a more conventional way,
assigning 'sf' from probe() return value.

No functional change.
src/endgame.h
src/material.cpp