ast_log(LOG_ERROR,"Memory Allocation Failure - Could not duplicate '%s' in function %s at line %d of %s\n",str,func,lineno,file);
}
@ -372,7 +372,7 @@ char *_ast_strndup(const char *str, size_t len, const char *file, int lineno, co
if(str){
newstr=strndup(str,len);
if(__builtin_expect(!newstr,0))
if(!newstr)
ast_log(LOG_ERROR,"Memory Allocation Failure - Could not duplicate '%d' bytes of '%s' in function %s at line %d of %s\n",(int)len,str,func,lineno,file);