]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/strutils: use directly err()
authorKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2020 09:45:55 +0000 (11:45 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2020 09:45:55 +0000 (11:45 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/strutils.c

index 5a8cd50370b6557b371de5baed3414af08079c92..304f314076f5ab6c8f996c19b20d6fe9c0182b40 100644 (file)
@@ -1060,7 +1060,7 @@ static int test_strdup_to_member(int argc, char *argv[])
 
        xx = calloc(1, sizeof(*xx));
        if (!xx)
-               err_oom();
+               err(EXIT_FAILURE, "calloc() failed");
 
        strdup_to_struct_member(xx, name, argv[1]);
        strdup_to_struct_member(xx, value, argv[2]);