utils: add noalloc flag to modifyString()

This should make it more straightforward for code analyzers to
tell if the function is going to allocate memory.
This commit is contained in:
Justin Maggard
2014-04-18 15:18:44 -07:00
parent b0550495e8
commit 331d484555
5 changed files with 32 additions and 24 deletions

View File

@ -118,11 +118,11 @@ SendFormats(struct upnphttp *h, const char *sformat)
static char *
tivo_unescape_tag(char *tag)
{
modifyString(tag, "&", "&");
modifyString(tag, "<", "<");
modifyString(tag, "<", "<");
modifyString(tag, ">", ">");
modifyString(tag, ">", ">");
modifyString(tag, "&", "&", 1);
modifyString(tag, "<", "<", 1);
modifyString(tag, "<", "<", 1);
modifyString(tag, ">", ">", 1);
modifyString(tag, ">", ">", 1);
return tag;
}