*****************************************************************************/
static vlm_schedule_sys_t *vlm_ScheduleNew( vlm_t *vlm, const char *psz_name )
{
- vlm_schedule_sys_t *p_sched = malloc( sizeof( vlm_schedule_sys_t ) );
-
- if( !p_sched )
- {
+ if( !psz_name )
return NULL;
- }
- if( !psz_name )
- {
+ vlm_schedule_sys_t *p_sched = malloc( sizeof( vlm_schedule_sys_t ) );
+ if( !p_sched )
return NULL;
- }
p_sched->psz_name = strdup( psz_name );
p_sched->b_enabled = false;