On Sat, May 8, 2010 at 09:06:26 -0700, Dan Nicholson wrote: > > Can we make the stuff in InputAttributes const instead? > > No, because the strings from hal are not const. I have a patch to make > config/udev dup the strings because: > > 1. udevd might die > 2. the device might get immediately removed > > In either case, you're holding a pointer into udev's database that > might go away at any time. Doesn't seem like a situation we'd want to > be in. > I'm holding a pointer to a string that libudev gave me, and that's hanging off an udev_device that I'm holding a reference on, until after NIDR returns. I'm not sure how that string could go away?
Cheers, Julien _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
