diff options
Diffstat (limited to 'libstore/module.c')
-rw-r--r-- | libstore/module.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; |