diff options
author | Thomas Haller <thaller@redhat.com> | 2020-02-25 10:44:32 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-04-03 11:31:12 +0200 |
commit | 5ab04919a252f851d30bc3865ed8b22ed0926eb6 (patch) | |
tree | cef820793ec87c5fa42aee22cc4b52cc57e24d43 | |
parent | a4da47bc47e64c02c71aace186a2f08e5077e2dc (diff) | |
download | NetworkManager-5ab04919a252f851d30bc3865ed8b22ed0926eb6.tar.gz |
shared: use G_UNLIKELY() macro for unlikely branch in nm_explicit_bzero()
-rw-r--r-- | shared/nm-glib-aux/nm-secret-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-glib-aux/nm-secret-utils.c b/shared/nm-glib-aux/nm-secret-utils.c index 282511d10d..78369b5edf 100644 --- a/shared/nm-glib-aux/nm-secret-utils.c +++ b/shared/nm-glib-aux/nm-secret-utils.c @@ -16,7 +16,7 @@ void nm_explicit_bzero (void *s, gsize n) { /* gracefully handle n == 0. This is important, callers rely on it. */ - if (n == 0) + if (G_UNLIKELY (n == 0)) return; nm_assert (s); |