chiark / gitweb /
James Harvey points out that entering an invalid game ID can affect
authorSimon Tatham <anakin@pobox.com>
Fri, 1 Jul 2005 16:50:49 +0000 (16:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 1 Jul 2005 16:50:49 +0000 (16:50 +0000)
commit8dd7ee300726872072075a5cdb35ebe9497e3adb
tree2eca990818af117c056095c7393d1785e86dc319
parent091fe57e0f8448e0972fa82dfac1f83f43147c5b
James Harvey points out that entering an invalid game ID can affect
the current midend state even if you don't subsequently enter a
valid one. Reorganise midend_game_id_int() so that (just like
midend_deserialise()) it does all its error checking before altering
anything in the midend's persistent data, so that it either succeeds
completely or fails before doing anything at all.

[originally from svn r6045]
midend.c