From 259ef5d144dd7022bb8e8fa2221f773277fd72e7 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 20 Jan 2006 17:15:17 +0100 Subject: remove NULL check after strdup() --- src/flpsed.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/flpsed.cxx b/src/flpsed.cxx index dae4677..05dcee5 100644 --- a/src/flpsed.cxx +++ b/src/flpsed.cxx @@ -394,10 +394,6 @@ int main(int argc, char** argv) { break; case 't': tmp = strdup(optarg); - if (!tmp) { - perror("strdup"); - exit(1); - } sep = strchr(tmp, '='); if (!sep) { fprintf(stderr, "Cannot parse %s\n", optarg); -- cgit v1.2.3