Remove a couple of dead conditions

For https://bugzilla.gnome.org/show_bug.cgi?id=733711
This commit is contained in:
Gaurav Gupta 2014-07-26 21:14:53 +08:00 committed by Daniel Veillard
parent 42870f46cc
commit b8480ae781
2 changed files with 3 additions and 9 deletions

View File

@ -887,7 +887,7 @@ xmlFileMatch (const char *filename ATTRIBUTE_UNUSED) {
*/
static void *
xmlFileOpen_real (const char *filename) {
const char *path = NULL;
const char *path = filename;
FILE *fd;
if (filename == NULL)
@ -917,11 +917,8 @@ xmlFileOpen_real (const char *filename) {
#else
path = &filename[5];
#endif
} else
path = filename;
}
if (path == NULL)
return(NULL);
if (!xmlCheckFilename(path))
return(NULL);

View File

@ -512,10 +512,7 @@ xmlMemStrdupLoc(const char *str, const char *file, int line)
if (xmlMemStopAtBlock == p->mh_number) xmlMallocBreakpoint();
if (s != NULL)
strcpy(s,str);
else
goto error;
strcpy(s,str);
TEST_POINT