Fix undefined return value in case of error
This commit is contained in:
parent
871dace9c5
commit
e99af5f8be
|
@ -2,7 +2,7 @@
|
||||||
/*
|
/*
|
||||||
* LADI Session Handler (ladish)
|
* 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
|
* 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;
|
struct ladish_write_context save_context;
|
||||||
bool renaming;
|
bool renaming;
|
||||||
|
|
||||||
|
ret = false;
|
||||||
|
|
||||||
time(×tamp);
|
time(×tamp);
|
||||||
ctime_r(×tamp, timestamp_str);
|
ctime_r(×tamp, timestamp_str);
|
||||||
timestamp_str[24] = 0;
|
timestamp_str[24] = 0;
|
||||||
|
|
Loading…
Reference in New Issue