1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmetad: empty types string is ok

Since now return code is test - return OK for this case.
This commit is contained in:
Zdenek Kabelac 2012-10-15 11:02:15 +02:00
parent a0e60d27ff
commit 3ed2c32e0a

View File

@ -153,12 +153,16 @@ static int _parse_one(log_state *s, int outlet, const char *type, int enable)
int daemon_log_parse(log_state *s, int outlet, const char *types, int enable)
{
char *buf = dm_strdup(types);
char *pos = buf;
char *buf;
char *pos;
if (!buf)
if (!types || !types[0])
return 1;
if (!(buf = dm_strdup(types)))
return 0;
pos = buf;
while (pos) {
char *next = strchr(pos, ',');
if (next)