projects
/
cleanmysourcetree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af483b5
)
remove stupid specialcase
author
Jann Horn
<jann@thejh.net>
Sat, 12 Sep 2015 13:31:30 +0000
(15:31 +0200)
committer
Jann Horn
<jann@thejh.net>
Sat, 12 Sep 2015 13:31:30 +0000
(15:31 +0200)
cleanmysourcetree.c
patch
|
blob
|
history
diff --git
a/cleanmysourcetree.c
b/cleanmysourcetree.c
index
cc116ca
..
f324059
100644
(file)
--- 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))