diff --git a/doc/CODING-GUIDELINES b/doc/CODING-GUIDELINES index 42d54aceb6..7e4679be72 100644 --- a/doc/CODING-GUIDELINES +++ b/doc/CODING-GUIDELINES @@ -384,7 +384,7 @@ in having code like this: However, the ast_strdup and ast_strdup functions will happily accept a NULL argument without generating an error. The same code can be written as: - newstr = strdup(str); + newstr = ast_strdup(str); * CLI Commands