diff options
author | Gaël Bonithon <gael@xfce.org> | 2022-03-16 12:41:58 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2022-03-16 12:41:58 +0100 |
commit | 7316159f999e89746b11dd9bdcff440dbbd1dc04 (patch) | |
tree | 99468cd7b61b22768daa9b3893919563154f3803 | |
parent | 9f9e7390eb94a6947a69699913fb876705393e8f (diff) | |
download | libxfce4util-7316159f999e89746b11dd9bdcff440dbbd1dc04.tar.gz |
xfce-miscutils: Fix `deadcode.DeadStores` warning from `scan-build`
-rw-r--r-- | libxfce4util/xfce-miscutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libxfce4util/xfce-miscutils.c b/libxfce4util/xfce-miscutils.c index a71e767..8248010 100644 --- a/libxfce4util/xfce-miscutils.c +++ b/libxfce4util/xfce-miscutils.c @@ -138,7 +138,7 @@ internal_get_file_r (const gchar *dir, g_return_val_if_fail(format != NULL, NULL); g_return_val_if_fail(len > 0, NULL); - if ((n = g_strlcpy(buffer, dir, len)) >= len) + if (g_strlcpy(buffer, dir, len) >= len) return NULL; if ((n = g_strlcat(buffer, G_DIR_SEPARATOR_S, len)) >= len) |