[Xfce4-commits] [xfce/xfdesktop] 01/01: Fix warning about ignoring return value (Bug # 15410)
noreply at xfce.org
noreply at xfce.org
Sat May 18 22:07:50 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfdesktop.
commit 0b721df2d7483e08512442c4605e8daccad3da98
Author: Olivier Duchateau <duchateau.olivier at gmail.com>
Date: Sat May 18 14:12:18 2019 +0200
Fix warning about ignoring return value (Bug # 15410)
---
src/xfdesktop-file-icon-manager.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 3605258..cda73b1 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1975,7 +1975,9 @@ xfdesktop_file_icon_manager_save_icons(gpointer user_data)
last_path = xfce_resource_save_location(XFCE_RESOURCE_CONFIG, "xfce4/desktop/icons.screen.latest.rc", TRUE);
if(last_path != NULL) {
unlink(last_path);
- symlink(path, last_path);
+ if (symlink(path, last_path) != 0)
+ g_warning("Unable to create symbolic link: %s",
+ strerror(errno));
g_free(last_path);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list