[PATCH] libhal-storage: fix to prevent segmentation faults if
call functions with ctx==NULL
Danny Kukawka
danny.kukawka at web.de
Thu Jul 21 11:15:25 PDT 2005
Hi,
here the new patch with a macro instead of always the same codeblock in so
many funtions.
The patch is against the CVS and fix this issue in libhal and libhal-storage.
Danny
libhal-storage/libhal-storage.c | 20 ++
libhal/libhal.c | 398
++++++++--------------------------------
libhal/libhal.h | 11 +
3 files changed, 115 insertions(+), 314 deletions(-)
On Thursday 21 July 2005 17:54, Danny Kukawka wrote:
> On Thursday 21 July 2005 17:43, Artem Kachitchkine wrote:
> > I don't know if HAL coding style dissaproves of macros, but this might
> > be one case when macros could be justified.
>
> O.K. this is a good idea, I write a new patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-LibHalContext.diff
Type: text/x-diff
Size: 27909 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050721/1a4178d0/hal-fix-LibHalContext.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list