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 NULL;
|
||||
}
|
||||
|
||||
char *
|
||||
|
@ -96,7 +96,8 @@ estrdup(char *s)
|
|||
register char *t;
|
||||
|
||||
if (NULL == (t = malloc(strlen(s)+1))) {
|
||||
return PyErr_NoMemory();
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
strcpy(t, s);
|
||||
return(t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue