projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
517ce45
)
glocalfilemonitor: Emit notification on rate limit change
author
Philip Withnall
<philip@tecnocode.co.uk>
Sun, 3 May 2015 11:17:10 +0000
(12:17 +0100)
committer
Philip Withnall
<philip.withnall@collabora.co.uk>
Mon, 4 May 2015 12:56:42 +0000
(13:56 +0100)
The changed variable was previously uninitialised in the path where the
rate limit was actually changed. This could result in the
GObject::notify signal not getting emitted.
Spotted by Coverity.
CID: #1296516
https://bugzilla.gnome.org/show_bug.cgi?id=748834
gio/glocalfilemonitor.c
patch
|
blob
|
history
diff --git
a/gio/glocalfilemonitor.c
b/gio/glocalfilemonitor.c
index
28f4c98
..
8a5c442
100644
(file)
--- a/
gio/glocalfilemonitor.c
+++ b/
gio/glocalfilemonitor.c
@@
-466,6
+466,8
@@
g_file_monitor_source_set_rate_limit (GFileMonitorSource *fms,
g_sequence_sort (fms->pending_changes, pending_change_compare_ready_time, fms);
g_file_monitor_source_update_ready_time (fms);
+
+ changed = TRUE;
}
else
changed = FALSE;