two less warnings
This commit is contained in:
parent
420d33b09d
commit
d9ac1d3638
1 changed files with 3 additions and 2 deletions
|
@ -87,7 +87,7 @@ getCallback(int callbackId)
|
||||||
return callbackList[i].func;
|
return callbackList[i].func;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
@ -96,7 +96,8 @@ estrdup(char *s)
|
||||||
register char *t;
|
register char *t;
|
||||||
|
|
||||||
if (NULL == (t = malloc(strlen(s)+1))) {
|
if (NULL == (t = malloc(strlen(s)+1))) {
|
||||||
return PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
strcpy(t, s);
|
strcpy(t, s);
|
||||||
return(t);
|
return(t);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue