Soft'N'Design Software
/
projects
/
fm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2ef74
)
fix unused variable
author
Laurent MAZET
<laurent.mazet@thalesgroup.com>
Fri, 24 Jan 2025 12:14:32 +0000
(13:14 +0100)
committer
Laurent MAZET
<laurent.mazet@thalesgroup.com>
Fri, 24 Jan 2025 12:14:32 +0000
(13:14 +0100)
function.c
patch
|
blob
|
blame
|
history
diff --git
a/function.c
b/function.c
index 37a911ff8dd4ece6501789f6d44b411fd1f4e429..8a2feb813ab020688ad909a3c166dd66ee3b1be2 100644
(file)
--- a/
function.c
+++ b/
function.c
@@
-291,7
+291,9
@@
void getinfo (char *dirname, elem_t *elem)
free (name);
- elem->nlk = sb.st_nlink;
+ if (!error) {
+ elem->nlk = sb.st_nlink;
+ }
}
void createstatus (char *status, elem_t *elem)