diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-20 13:27:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-20 13:27:20 +0100 |
commit | 9dd2ec7d5ad8c3707151eb8e72895c3ab6ec6484 (patch) | |
tree | 3d9a89ae6f1c92ba7c2aa9f3babd43dbcc20c8ce /sfx2 | |
parent | 428d9243d26b6aef1320b67ca0327ff80ff9bf0b (diff) |
WaE, ignore return value from symlink
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index e2e719ffd7..5d74075e34 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -879,8 +879,9 @@ void ShutdownIcon::SetAutostart( bool bActivate ) osl_getThreadTextEncoding() ); if ((0 != symlink(aDesktopFileUnx, aShortcutUnx)) && (errno == EEXIST)) { - unlink(aShortcutUnx); - symlink(aDesktopFileUnx, aShortcutUnx); + unlink(aShortcutUnx); + int ret = symlink(aDesktopFileUnx, aShortcutUnx); + (void)ret; //deliberately ignore return value, it's non-critical if it fails } ShutdownIcon *pIcon = ShutdownIcon::createInstance(); |