dbus/dbus dbus-sysdeps.c,1.89,1.90

Havoc Pennington hp@freedesktop.org
Thu Jan 20 20:14:56 PST 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv2625/dbus

Modified Files:
	dbus-sysdeps.c 
Log Message:
2005-01-20  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus-sysdeps.c (_dbus_poll): amazingly, trying to compile
	code can reveal bugs in it



Index: dbus-sysdeps.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- dbus-sysdeps.c	21 Jan 2005 03:47:21 -0000	1.89
+++ dbus-sysdeps.c	21 Jan 2005 04:14:54 -0000	1.90
@@ -1840,7 +1840,7 @@
 
   for (i = 0; i < n_fds; i++)
     {
-      DBusPollFD *fdp = fds[i];
+      DBusPollFD *fdp = &fds[i];
 
       if (fdp->events & _DBUS_POLLIN)
 	FD_SET (fdp->fd, &read_set);
@@ -1863,7 +1863,7 @@
     {
       for (i = 0; i < n_fds; i++)
 	{
-	  DBusPollFD *fdp = fds[i];
+	  DBusPollFD *fdp = &fds[i];
 
 	  fdp->revents = 0;
 



More information about the dbus-commit mailing list