From 0bfe7802d251286db03c7d9dfd1b3cd325060863 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:08:16 +0200 Subject: directory: path must not be NULL For the root directory, let's set path to an empty string. This saves a few checks. --- src/directory.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/directory.h') diff --git a/src/directory.h b/src/directory.h index d8a8ea2af..ad24ca56f 100644 --- a/src/directory.h +++ b/src/directory.h @@ -73,8 +73,6 @@ directory_is_empty(struct directory *directory) static inline const char * directory_get_path(struct directory *directory) { - if (directory->path == NULL) - return ""; return directory->path; } -- cgit v1.2.3