mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Remove unnecessary warning message, make a couple of formatting tweaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@248534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1056,14 +1056,13 @@ static int csv_quote(struct ast_channel *chan, const char *cmd, char *data, char
|
||||
{
|
||||
char *bufptr = buf, *dataptr = data;
|
||||
|
||||
if (len < 3){ /* at least two for quotes and one for binary zero */
|
||||
if (len < 3) { /* at least two for quotes and one for binary zero */
|
||||
ast_log(LOG_ERROR, "Not enough buffer");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ast_strlen_zero(data)) {
|
||||
ast_log(LOG_WARNING, "No argument specified!\n");
|
||||
ast_copy_string(buf,"\"\"",len);
|
||||
ast_copy_string(buf, "\"\"", len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user