mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmetad: empty types string is ok
Since now return code is test - return OK for this case.
This commit is contained in:
parent
a0e60d27ff
commit
3ed2c32e0a
@ -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)
|
int daemon_log_parse(log_state *s, int outlet, const char *types, int enable)
|
||||||
{
|
{
|
||||||
char *buf = dm_strdup(types);
|
char *buf;
|
||||||
char *pos = buf;
|
char *pos;
|
||||||
|
|
||||||
if (!buf)
|
if (!types || !types[0])
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
if (!(buf = dm_strdup(types)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
pos = buf;
|
||||||
while (pos) {
|
while (pos) {
|
||||||
char *next = strchr(pos, ',');
|
char *next = strchr(pos, ',');
|
||||||
if (next)
|
if (next)
|
||||||
|
Loading…
Reference in New Issue
Block a user