Re: [PATCH] drmStrdup doesn't check for failed allocation

2005-11-29 Thread Adam Jackson
On Tuesday 29 November 2005 14:38, Tilman Sauerbeck wrote: > Hi, > drmStrdup() doesn't check for an allocation failure. I attached a patch > that also tries to improve readability of the code. Feel free to > disagree on that :) > > I realize the chances of drmStrdup() failing are probably low, but

[PATCH] drmStrdup doesn't check for failed allocation

2005-11-29 Thread Tilman Sauerbeck
Hi, drmStrdup() doesn't check for an allocation failure. I attached a patch that also tries to improve readability of the code. Feel free to disagree on that :) I realize the chances of drmStrdup() failing are probably low, but it should be corrected anyway. Regards, Tilman Index: libdrm/xf86drm.