Commit b8480ae7 authored by Gaurav Gupta's avatar Gaurav Gupta Committed by Daniel Veillard

Remove a couple of dead conditions

For https://bugzilla.gnome.org/show_bug.cgi?id=733711
parent 42870f46
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment