From 0ed0f028e849509fe892cd7061617f8ad5eb3dff Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 2 Aug 2003 22:02:03 +0000 Subject: 2003-08-02 Ognyan Kulev * module.c (store_module_open): NAME that doesn't contain ':' is not considered invalid argument, but a class name without class-specific portion. * typed.c (store_typed_open): When NAME is empty string, don't invoke store_open (name + 1, ...). --- libstore/module.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libstore/module.c') diff --git a/libstore/module.c b/libstore/module.c index 1fcdf544..6e75099a 100644 --- a/libstore/module.c +++ b/libstore/module.c @@ -1,5 +1,5 @@ /* Dynamic loading of store class modules - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -97,12 +97,9 @@ store_module_open (const char *name, int flags, struct store **store) { const struct store_class *cl; - const char *clname_end = strchr (name, ':'); + const char *clname_end = strchrnul (name, ':'); error_t err; - if (! clname_end) - return EINVAL; - err = open_class (1, name, clname_end, &cl); if (err) return err; -- cgit v1.2.3