realpath.c(main): Remove duplicate if condition.

This commit is contained in:
R. Bernstein
2012-01-28 23:31:24 -05:00
parent 6bbab1a4e2
commit 96bd9a9993

View File

@@ -1,5 +1,5 @@
/* -*- C -*- /* -*- C -*-
Copyright (C) 2010, 2011 Rocky Bernstein <rocky@gnu.org> Copyright (C) 2010, 2011, 2012 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -97,12 +97,8 @@ main(int argc, const char *argv[])
if (NULL == psz_tmp_subdir) { if (NULL == psz_tmp_subdir) {
exit(77); exit(77);
} }
if (NULL == psz_tmp_subdir) {
printf("extract parent directory from temporary directory name\n");
exit(77);
}
if (-1 == check_rc(mkdir(psz_tmp_subdir, 0755), if (-1 == check_rc(mkdir(psz_tmp_subdir, 0700),
"mkdir", psz_tmp_subdir)) "mkdir", psz_tmp_subdir))
exit(77); exit(77);