diff options
author | Michele Papalini <micpapal@cisco.com> | 2023-02-02 17:49:46 +0100 |
---|---|---|
committer | Michele Papalini <micpapal@cisco.com> | 2023-02-07 10:25:01 +0100 |
commit | 8a7e75e84a31180d51b9970d526709ec4dca2030 (patch) | |
tree | 48c1d88f0a5635e75fa9fc0eb898b861b42477e8 /lib | |
parent | b96d1545a8d2a173dc5911ed0bca3e04dbb02176 (diff) |
fix(hicn): fix bugs reported by sonarqube
Ref: HICN-837
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I0d02a11361b1ba5ad50123b2dd142c961998922f
Diffstat (limited to 'lib')
-rw-r--r-- | lib/src/policy.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/src/policy.c b/lib/src/policy.c index 0b4850b93..4a4b9fa89 100644 --- a/lib/src/policy.c +++ b/lib/src/policy.c @@ -69,8 +69,5 @@ policy_tag_state_snprintf (char *s, size_t size, if (rc < 0) return rc; cur += rc; - if (size != 0 && cur >= s + size) - return (int) (cur - s); - return (int) (cur - s); } |