(StringType_get_tag): Fix omission bug: Cast `DohMalloc()'
return value to `char *'. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b355c92f63
commit
7f1079a5e0
1 changed files with 19 additions and 19 deletions
|
|
@ -375,7 +375,7 @@ DOHString *StringType_get_tag(DOHString *s) {
|
|||
c++;
|
||||
p = strchr(c, (int)'/');
|
||||
if (!p) return NULL;
|
||||
rv = DohMalloc(p - c + 1);
|
||||
rv = (char *) DohMalloc (p - c + 1);
|
||||
memmove(rv, c, p - c);
|
||||
rv[p - c] = 0;
|
||||
return rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue