From e99af5f8be96955b3d6e228add3748a4807c7b58 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Mon, 19 Nov 2012 06:42:04 +0200 Subject: [PATCH] Fix undefined return value in case of error --- daemon/cmd_save_studio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/cmd_save_studio.c b/daemon/cmd_save_studio.c index b590bd81..09cdf026 100644 --- a/daemon/cmd_save_studio.c +++ b/daemon/cmd_save_studio.c @@ -2,7 +2,7 @@ /* * LADI Session Handler (ladish) * - * Copyright (C) 2009,2010,2011 Nedko Arnaudov + * Copyright (C) 2009,2010,2011,2012 Nedko Arnaudov * ************************************************************************** * 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(×tamp); ctime_r(×tamp, timestamp_str); timestamp_str[24] = 0;