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 | 28b85750146cd39da12885e9c62eedb1add5b738 (patch) | |
tree | 06e5462e60c5c0719adb0833ddd8d4dcb40b9088 /sfx2 | |
parent | 1d871c1d00b3fee7ba3c3f556fb5199f969a27e4 (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 3953a819c0fc..a7e9413bb723 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(); |