diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 20:16:59 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 20:34:35 +0200 |
| commit | 4f4060f6abbfa004e0eb63b7c447776cc74c8d66 (patch) | |
| tree | db67b768f3c17767dc6aff86e17da01590b26df8 /staticd/static_vty.c | |
| parent | f70247febe1e61bb77f9ba318a7dea55491d0b84 (diff) | |
*: fix clang-6 SA warnings
I don't see these in CI, but my local clang-6 does emit warnings for
these.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'staticd/static_vty.c')
| -rw-r--r-- | staticd/static_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index b323612d7e..f697969a72 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -88,8 +88,8 @@ static struct list *static_list; static int static_list_compare_helper(const char *s1, const char *s2) { - /* Are Both NULL */ - if (s1 == s2) + /* extra (!s1 && !s2) to keep SA happy */ + if (s1 == s2 || (!s1 && !s2)) return 0; if (!s1 && s2) |
