aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-18 02:06:27 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-18 02:06:27 +0000
commitf73ae1be9bf1d765d5dae8ef03198744e6c5cc02 (patch)
tree7c726b705eeac652f1d117bf994b5cafb4c25d23 /funcs
parent518c69c2cf5d9b95d6ff452ea1d6a7e78d0e58eb (diff)
Reset default CUT delimiter back to '-'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99015 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_cut.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/funcs/func_cut.c b/funcs/func_cut.c
index 142b768d9..169fed6b5 100644
--- a/funcs/func_cut.c
+++ b/funcs/func_cut.c
@@ -63,7 +63,7 @@ static int sort_internal(struct ast_channel *chan, char *data, char *buffer, siz
int count=1, count2, element_count=0;
struct sortable_keys *sortable_keys;
- memset(buffer, 0, buflen);
+ *buffer = '\0';
if (!data)
return ERROR_NOARG;
@@ -118,7 +118,7 @@ static int cut_internal(struct ast_channel *chan, char *data, char *buffer, size
AST_APP_ARG(field);
);
- memset(buffer, 0, buflen);
+ *buffer = '\0';
parse = ast_strdupa(data);
@@ -139,7 +139,7 @@ static int cut_internal(struct ast_channel *chan, char *data, char *buffer, size
}
if (ast_get_encoded_char(args.delimiter, ds, &delim_consumed))
- return ERROR_NOARG;
+ ast_copy_string(ds, "-", sizeof(ds));
/* String form of the delimiter, for use with strsep(3) */
d = *ds;