]> err.no Git - util-linux/commit
losetup: do not distinguish between malloc and realloc
authorTobias Klauser <tklauser@distanz.ch>
Wed, 11 Aug 2010 21:12:07 +0000 (23:12 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Aug 2010 11:05:21 +0000 (13:05 +0200)
commit9695a7c653c5e1871f7bb78fa0e6ec8d4e74a83a
treed8a53c582ef57ca81093f9ba13a411b960dac828
parentec25979447b09387c8152d570581d963df91261e
losetup: do not distinguish between malloc and realloc

realloc(NULL, size) behaves the same as malloc(size) so there is no need
to distinguish between the two.

[kzak@redhat.com: - better handle realloc() errors]

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/lomount.c