[gvfs] Prevent access to unitialized memory
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs] Prevent access to unitialized memory
- Date: Fri, 11 Sep 2009 05:14:00 +0000 (UTC)
commit b1bc2ec30e6dd97355d550b130c6b5ee24d43d33
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 11 01:10:08 2009 -0400
Prevent access to unitialized memory
Pointed out by clang.
monitor/proxy/gvfsproxyvolumemonitordaemon.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/monitor/proxy/gvfsproxyvolumemonitordaemon.c b/monitor/proxy/gvfsproxyvolumemonitordaemon.c
index 47e2674..ddb7d93 100644
--- a/monitor/proxy/gvfsproxyvolumemonitordaemon.c
+++ b/monitor/proxy/gvfsproxyvolumemonitordaemon.c
@@ -951,6 +951,8 @@ handle_mount_op_reply (DBusConnection *connection, DBusMessage *message)
sender = dbus_message_get_sender (message);
/* Find the op */
+ mount_operation = NULL;
+
for (l = outstanding_mount_op_objects; l != NULL; l = l->next)
{
GMountOperation *op = G_MOUNT_OPERATION (l->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]