timedatectl: avoid using uninitialized var
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 14 Apr 2014 17:16:56 +0000 (19:16 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 14 Apr 2014 17:16:56 +0000 (19:16 +0200)
commit2667cc25896a15f82f9f1583e80d416beb1316e1
treec4f86b1d1fc4ce2e9117df6047d0503c43b63fcc
parenta6ad1458e8baf913e9ee377c52863b927d7a2638
timedatectl: avoid using uninitialized var

sec is not set if have_time is false so avoid using it. have_time
was introduced in 9ff09bcb86fb125768667aca9bc0b10b1745370a but only
the first uses for sec were covered

Found with scan-build
src/timedate/timedatectl.c