]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Don't delete everything under a string-subkeyed primary key by using a
authorSimon Tatham <anakin@pobox.com>
Fri, 15 Jul 2011 18:30:47 +0000 (18:30 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 Jul 2011 18:30:47 +0000 (18:30 +0000)
commita474a598b57d0bec0142dc7b86d23e0039a0d13f
treed479a93f7a8b115f851ca828ded9f3f9af5dc99d
parent31fd55edf1c69aa01305b5ad55143a86ad75be0d
Don't delete everything under a string-subkeyed primary key by using a
loop that fetches the next item using conf_get_str_strs and passing
the previous key as a parameter, because the previous key will have
been freed by the intervening conf_del_str_str. Instead, use the
technique of repeatedly using conf_get_str_nthstrkey with index 0 and
deleting what comes back, as PSCP and PSFTP do.

Spotted by Minefield with the aid of Jacob, or possibly vice versa.

[originally from svn r9220]
settings.c