cg_get_path: Removed unreachable statement

controller cannot be NULL because if-statement in L509 has return
Coverity #1322379
This commit is contained in:
reverendhomer 2015-09-03 11:34:47 +03:00
parent f0ff5bb88c
commit 99d3888a19
1 changed files with 1 additions and 4 deletions

View File

@ -540,10 +540,7 @@ int cg_get_path(const char *controller, const char *path, const char *suffix, ch
else {
const char *dn;
if (controller)
dn = controller_to_dirname(controller);
else
dn = NULL;
dn = controller_to_dirname(controller);
r = join_path_legacy(dn, path, suffix, fs);
}