two less warnings

This commit is contained in:
Øyvind Saltvik 2012-08-11 18:11:23 +02:00
parent 420d33b09d
commit d9ac1d3638

View file

@ -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);