mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Remove a couple of dead conditions
For https://bugzilla.gnome.org/show_bug.cgi?id=733711
This commit is contained in:
parent
42870f46cc
commit
b8480ae781
7
xmlIO.c
7
xmlIO.c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user