From: Jann Horn Date: Sat, 12 Sep 2015 13:31:30 +0000 (+0200) Subject: remove stupid specialcase X-Git-Url: http://git.thejh.net/?p=cleanmysourcetree.git;a=commitdiff_plain;h=78cea3f4a40371d0273625b0f03dca001acf1e08 remove stupid specialcase --- diff --git a/cleanmysourcetree.c b/cleanmysourcetree.c index cc116ca..f324059 100644 --- a/cleanmysourcetree.c +++ b/cleanmysourcetree.c @@ -96,11 +96,7 @@ static void add_files_recursive(const char *current_path) { continue; char file_path[strlen(current_path) + 1 + strlen(entry.d_name) + 1]; - if (strcmp(current_path, ".") == 0) { - strcpy(file_path, entry.d_name); - } else { - sprintf(file_path, "%s/%s", current_path, entry.d_name); - } + sprintf(file_path, "%s/%s", current_path, entry.d_name); struct stat st; if (lstat(file_path, &st))