lib/strutils: keep static analyzer happy [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-05-15 16:09:16 +02:00
parent 91bf581742
commit 6d92f7d7bf
1 changed files with 3 additions and 1 deletions

View File

@ -869,8 +869,10 @@ int streq_paths(const char *a, const char *b)
((a_seg && *a_seg == '/') || (b_seg && *b_seg == '/')))
return 1;
if (!a_seg || !b_seg)
break;
if (a_sz != b_sz || strncmp(a_seg, b_seg, a_sz) != 0)
return 0;
break;
a = a_seg + a_sz;
b = b_seg + b_sz;