[pacman-dev] [PATCH] alpm_list_remove treat NULL needle as "nothing"
Nagy Gabor
ngaba at bibl.u-szeged.hu
Wed Jul 16 10:03:48 EDT 2008
> >From c44fec0058d8a69d29eeb947698bfaf165a6a080 Mon Sep 17 00:00:00
> >2001
> From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
> Date: Wed, 16 Jul 2008 15:57:08 +0200
> Subject: [PATCH] alpm_list_remove treat NULL needle as "nothing"
>
> So if you want to remove NULL needle from a list, alpm_list_remove
> will return with "not found".
>
> Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
After this patch my previous "fix segfault" patch is not needed. But
if you like "safe programming", you will like that patch too.
Bye
More information about the pacman-dev
mailing list