Code cleanup

This commit is contained in:
Pierre Pronchery 2007-09-18 22:04:23 +00:00
parent b9613aa9a1
commit 4e9b3c0ab0

View File

@ -107,7 +107,7 @@ static int _rm_do_recursive(Prefs * prefs, char * filename)
if((path = malloc(len)) == NULL)
{
closedir(dir);
return _rm_error("malloc", 1);
return _rm_error(filename, 1);
}
sprintf(path, "%s/", filename);
while((de = readdir(dir)) != NULL)