1 |
/* Support for opening `typed' stores |
/* Support for opening `typed' stores |
2 |
|
|
3 |
Copyright (C) 1997,98,2001,02 Free Software Foundation, Inc. |
Copyright (C) 1997,98,2001,02,03 Free Software Foundation, Inc. |
4 |
Written by Miles Bader <miles@gnu.org> |
Written by Miles Bader <miles@gnu.org> |
5 |
|
|
6 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
113 |
const struct store_class *cl; |
const struct store_class *cl; |
114 |
const char *clname_end = strchrnul (name, ':'); |
const char *clname_end = strchrnul (name, ':'); |
115 |
|
|
116 |
if (clname_end == name) |
if (clname_end == name && *clname_end) |
117 |
/* Open NAME with store_open. */ |
/* Open NAME with store_open. */ |
118 |
return store_open (name + 1, flags, classes, store); |
return store_open (name + 1, flags, classes, store); |
119 |
|
|