pointer or suffer SEGVs with invalid paths.
+2003-09-25 Christopher Faylor <cgf@redhat.com>
+
+ * dtable.cc (build_fh_name): Return pointer to a 'nodevice' rather than
+ a NULL pointer or suffer SEGVs with invalid paths.
+
2003-09-25 Christopher Faylor <cgf@redhat.com>
* fork.cc (fork_parent): Detect failed pinfo constructor.
}
}
+#define cnew(name) new ((void *) ccalloc (HEAP_FHANDLER, 1, sizeof (name))) name
fhandler_base *
build_fh_name (const char *name, HANDLE h, unsigned opt, suffix_info *si)
{
if (pc.error)
{
set_errno (pc.error);
- return NULL;
+ return cnew (fhandler_nodevice) ();
}
if (!pc.exists () && h)
return build_fh_pc (pc);
}
-#define cnew(name) new ((void *) ccalloc (HEAP_FHANDLER, 1, sizeof (name))) name
fhandler_base *
build_fh_pc (path_conv& pc)
{