Fix undefined return value in case of error

This commit is contained in:
Nedko Arnaudov 2012-11-19 06:42:04 +02:00
parent 871dace9c5
commit e99af5f8be
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
/*
* LADI Session Handler (ladish)
*
* Copyright (C) 2009,2010,2011 Nedko Arnaudov <nedko@arnaudov.name>
* Copyright (C) 2009,2010,2011,2012 Nedko Arnaudov <nedko@arnaudov.name>
*
**************************************************************************
* This file contains implementation of the "save studio" command
@ -203,6 +203,8 @@ static bool ladish_save_studio_xml(struct ladish_command_save_studio * cmd_ptr)
struct ladish_write_context save_context;
bool renaming;
ret = false;
time(&timestamp);
ctime_r(&timestamp, timestamp_str);
timestamp_str[24] = 0;