mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 22:45:39 +00:00
Reset default CUT delimiter back to '-'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -63,7 +63,7 @@ static int sort_internal(struct ast_channel *chan, char *data, char *buffer, siz
|
|||||||
int count=1, count2, element_count=0;
|
int count=1, count2, element_count=0;
|
||||||
struct sortable_keys *sortable_keys;
|
struct sortable_keys *sortable_keys;
|
||||||
|
|
||||||
memset(buffer, 0, buflen);
|
*buffer = '\0';
|
||||||
|
|
||||||
if (!data)
|
if (!data)
|
||||||
return ERROR_NOARG;
|
return ERROR_NOARG;
|
||||||
@@ -118,7 +118,7 @@ static int cut_internal(struct ast_channel *chan, char *data, char *buffer, size
|
|||||||
AST_APP_ARG(field);
|
AST_APP_ARG(field);
|
||||||
);
|
);
|
||||||
|
|
||||||
memset(buffer, 0, buflen);
|
*buffer = '\0';
|
||||||
|
|
||||||
parse = ast_strdupa(data);
|
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))
|
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) */
|
/* String form of the delimiter, for use with strsep(3) */
|
||||||
d = *ds;
|
d = *ds;
|
||||||
|
Reference in New Issue
Block a user