diff options
| author | Thomas Quinot <thomas@FreeBSD.org> | 2003-01-02 10:19:43 +0000 |
|---|---|---|
| committer | Thomas Quinot <thomas@FreeBSD.org> | 2003-01-02 10:19:43 +0000 |
| commit | 464ef179a037714b6812b45fd58d9a7235458048 (patch) | |
| tree | 6a669dd09851c48b9066497f33bec4db9af498e8 /lib/libc | |
| parent | 105df8c3d75feb91102206710af9bff3e176c708 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/getcap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c index 3dbcd3777d1d..af051135e239 100644 --- a/lib/libc/gen/getcap.c +++ b/lib/libc/gen/getcap.c @@ -577,6 +577,9 @@ cgetmatch(const char *buf, const char *name) { const char *np, *bp; + if (name == NULL || *name == '\0') + return -1; + /* * Start search at beginning of record. */ |
