missing-val-dialog: Avoid destroying uninitialized data.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 19 Aug 2012 18:41:25 +0000 (11:41 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 19 Aug 2012 18:41:25 +0000 (11:41 -0700)
commit6be7e7732a1f1901daf439fd1c96c4353af0da17
tree93ebfaf6e181bdb744b3fef4738d90b9abf8c338
parentce2b9742d02e7619a6bca2102c4985e5828cdcc9
missing-val-dialog: Avoid destroying uninitialized data.

If text_to_value() fails for low_val, then this code would still
destroy high_val, even though high_val hadn't been initialized,
thus accessing indeterminate data.

This also eliminates some redundancy in the code.
src/ui/gui/missing-val-dialog.c