diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-04-11 11:19:27 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-04-11 11:19:27 +0200 |
commit | 14b662590144571985897855f9973f16e386e0ce (patch) | |
tree | 1bd53b773f592dc583aff4635537a10a6f89fcaa /src/core/path.c | |
parent | cbe22206143a04f573e5cfbc8c839ddf2fd8c5dc (diff) | |
parent | 7236ce6e9e379948217c31f38b48de6448521162 (diff) |
Merge pull request #2996 from keszybz/coverity-fixes
Coverity fixes
Diffstat (limited to 'src/core/path.c')
-rw-r--r-- | src/core/path.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/path.c b/src/core/path.c index 6ac9b8b90d..426c4ad299 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -110,16 +110,14 @@ int path_spec_watch(PathSpec *s, sd_event_io_handler_t handler) { } else { exists = true; - /* Path exists, we don't need to watch parent - too closely. */ + /* Path exists, we don't need to watch parent too closely. */ if (oldslash) { char *cut2 = oldslash + (oldslash == s->path); char tmp2 = *cut2; *cut2 = '\0'; - inotify_add_watch(s->inotify_fd, s->path, IN_MOVE_SELF); - /* Error is ignored, the worst can happen is - we get spurious events. */ + (void) inotify_add_watch(s->inotify_fd, s->path, IN_MOVE_SELF); + /* Error is ignored, the worst can happen is we get spurious events. */ *cut2 = tmp2; } |