On Wed, Aug 11, 2010 at 10:53:16PM +0200, Tobias Klauser wrote: > The return value of malloc() should be checked for NULL before > dereferencing it. Also realloc(NULL, size) can be used which does the > same thing as malloc(size). > > Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx> > --- > shlibs/mount/src/utils.c | 9 ++++----- > 1 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/shlibs/mount/src/utils.c b/shlibs/mount/src/utils.c > index f487383..29f8190 100644 > --- a/shlibs/mount/src/utils.c > +++ b/shlibs/mount/src/utils.c > @@ -271,19 +271,18 @@ int mnt_match_options(const char *optstr, const char *pattern) > char *mnt_strconcat3(char *s, const char *t, const char *u) I have removed this function. It's unused in the library. Note that the same code is in mount/sundries.c, but this mount(8) code should be replaced with libmount in near future. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html