aboutsummaryrefslogtreecommitdiff
path: root/Source/Swig/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Swig/error.c')
-rw-r--r--Source/Swig/error.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Swig/error.c b/Source/Swig/error.c
index 1dde06652..c85f16df2 100644
--- a/Source/Swig/error.c
+++ b/Source/Swig/error.c
@@ -4,7 +4,7 @@
* terms also apply to certain portions of SWIG. The full details of the SWIG
* license and copyrights can be found in the LICENSE and COPYRIGHT files
* included with the SWIG source code as distributed by the SWIG developers
- * and at http://www.swig.org/legal.html.
+ * and at https://www.swig.org/legal.html.
*
* error.c
*
@@ -189,7 +189,6 @@ void Swig_warnfilter(const_String_or_char_ptr wlist, int add) {
filter = NewStringEmpty();
s = NewString("");
- Clear(s);
cw = Char(wlist);
while (*cw != '\0') {
if (*cw != ' ') {
@@ -209,14 +208,14 @@ void Swig_warnfilter(const_String_or_char_ptr wlist, int add) {
Insert(filter, 0, "-");
}
} else {
- char *temp = (char *)malloc(sizeof(char)*strlen(c) + 2);
+ char *temp = (char *)Malloc(sizeof(char)*strlen(c) + 2);
if (isdigit((int) *c)) {
sprintf(temp, "-%s", c);
} else {
strcpy(temp, c);
}
Replace(filter, temp, "", DOH_REPLACE_FIRST);
- free(temp);
+ Free(temp);
}
}
c = strtok(NULL, ", ");