]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: cleanup strdup() use in context, add reg.test
authorKarel Zak <kzak@redhat.com>
Wed, 23 Oct 2019 10:02:33 +0000 (12:02 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 11:25:08 +0000 (12:25 +0100)
commit779e3c97aa5ff1c1ebeb39d310757d6c24739a80
tree0a8e971b15255f4db14b071aa5d56521a06cf7bf
parentb231e0f71c837680d4fdc49b5bb896bc222bf14d
libmount: cleanup strdup() use in context, add reg.test

* don't ignore strdup() result
* cleanup mnt_context_prepare_helper() to have only one return point
  (due to mnt_context_switch_ns())
* add mnt_context_prepare_helper() test program

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c