mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove some unnecessary variable initializations
Not really bugs, just wasted. They clutter up the output of static analysis with cppcheck. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3ab27e65e8
commit
3f261f56f3
4 changed files with 9 additions and 11 deletions
|
@ -169,7 +169,7 @@ static void divedate(char *buffer, void *_when)
|
|||
{
|
||||
int d,m,y;
|
||||
timestamp_t *when = _when;
|
||||
int success = 0;
|
||||
int success;
|
||||
|
||||
success = cur_tm.tm_sec | cur_tm.tm_min | cur_tm.tm_hour;
|
||||
if (sscanf(buffer, "%d.%d.%d", &d, &m, &y) == 3) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue