]> git.itanic.dy.fi Git - glucose/commit
main: Only set non-zero elements in user_options structure
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 27 Mar 2012 17:59:38 +0000 (20:59 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 27 Mar 2012 17:59:38 +0000 (20:59 +0300)
commita7089275f4e64a7d7a52a1c03ddd51a8566408e8
tree71dd468555bdb98671c890602b2f5db4819b44cc
parent009c9b76361ee3bb4d20bd791ec2334c30a274af
main: Only set non-zero elements in user_options structure

As the number of elements may increase over time, it is better to zero
out the entire strucutre and then explicity set default values only on
those entries that have non-zero default.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c