From f804bc7007e076f51f1270531e4c06fdb0d02a1d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 1 Aug 2019 17:24:55 +0200 Subject: [PATCH] shared: fix non-serious bug with bogus condition in assertion in nm_key_file_db_ref() (cherry picked from commit 9a229241f96ce48f77baa442b1b6aeac9d8489cb) --- shared/nm-glib-aux/nm-keyfile-aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/nm-glib-aux/nm-keyfile-aux.c b/shared/nm-glib-aux/nm-keyfile-aux.c index 0257bcca7f..989c773f23 100644 --- a/shared/nm-glib-aux/nm-keyfile-aux.c +++ b/shared/nm-glib-aux/nm-keyfile-aux.c @@ -125,7 +125,7 @@ nm_key_file_db_ref (NMKeyFileDB *self) g_return_val_if_fail (_IS_KEY_FILE_DB (self, FALSE, TRUE), NULL); - nm_assert (self->ref_count <= G_MAXUINT); + nm_assert (self->ref_count < G_MAXUINT); self->ref_count++; return self; }