diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c index edf10a18202e7fe189104d1afbf084b917b9c349..80df5926de13c3f4ed3fe702fa2f8a53f2efd6a3 100644 --- a/apps/app_controlplayback.c +++ b/apps/app_controlplayback.c @@ -124,7 +124,7 @@ static int controlplayback_exec(struct ast_channel *chan, void *data) if (args.options) { ast_app_parse_options(cpb_opts, &opts, opt_args, args.options); - if (ast_test_flag(&opts, OPT_OFFSET)) + if (ast_test_flag(&opts, OPT_OFFSET) && !ast_strlen_zero(opt_args[OPT_ARG_OFFSET])) offsetms = atol(opt_args[OPT_ARG_OFFSET]); }