X-Git-Url: http://git.thejh.net/?p=cleanmysourcetree.git;a=blobdiff_plain;f=cleanmysourcetree.c;h=f324059ee86145de319f92f0d3ffaed438d1efb1;hp=cc116cae5ef08ea658dd896719db7ca03a54b69f;hb=78cea3f4a40371d0273625b0f03dca001acf1e08;hpb=af483b5ba9bd4d85a911fa5940b80f0aa22c311c 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))