diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-01-20 17:15:17 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-01-20 17:15:17 +0100 |
commit | 259ef5d144dd7022bb8e8fa2221f773277fd72e7 (patch) | |
tree | df08e71f2e2cd3e6a3e5c77d0f4e2fa88f15990a /src | |
parent | fb3cd1e9f1a985126d0c6a54197ed2ae48a255dd (diff) |
remove NULL check after strdup()
Diffstat (limited to 'src')
-rw-r--r-- | src/flpsed.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
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); |