diff options
| author | root <[email protected]> | 2024-10-28 09:25:46 +0000 |
|---|---|---|
| committer | root <[email protected]> | 2024-10-28 09:25:46 +0000 |
| commit | abd00a9aab474d300c00088a060766bc2f5f802b (patch) | |
| tree | 847e716a8bcd421a78e417fcb71d7a4718e1aa48 /src | |
| parent | 816dabaf9e2bcc04e96c861c93f2aa354040339c (diff) | |
add some detail info for log
Diffstat (limited to 'src')
| -rw-r--r-- | src/maat_expr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/maat_expr.c b/src/maat_expr.c index 79edba6..51807d8 100644 --- a/src/maat_expr.c +++ b/src/maat_expr.c @@ -508,6 +508,10 @@ static int expr_keywords_to_expr_pattern(char *keywords, struct expr_pattern *pa pattern->pat_len = pattern_len; } + if (pattern->pat_len == 0) { + return -1; + } + return 0; } |
