diff options
Diffstat (limited to 'tests/sprintrc.c')
-rw-r--r-- | tests/sprintrc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/sprintrc.c b/tests/sprintrc.c index 7423afb69..029546a44 100644 --- a/tests/sprintrc.c +++ b/tests/sprintrc.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2016 Eugene Syromyatnikov <evgsyr@gmail.com> + * Copyright (c) 2016-2018 The strace developers. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -54,9 +55,6 @@ sprintrc_ex(long rc, enum sprintrc_fmt fmt) }; static char buf[4096]; - if (fmt >= ARRAY_SIZE(formats)) - perror_msg_and_fail("sprintrc_ex: incorrect format provided"); - if (rc == 0) return "0"; |