diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-25 18:06:28 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-25 18:06:28 +0100 |
| commit | 56faf0e12dac62007be7c6e34f01804bc909de59 (patch) | |
| tree | dbf20acd4d4256ecfaed7d88b604072c0c6ebae8 | |
| parent | d105c5d37cbbac8779df0a16d1d8597515cab048 (diff) | |
Use local variable
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -430,10 +430,10 @@ static void ftag_file_add(int argc, char **argv) continue; /* do not add this file */ } struct stat st; - rc = stat(argv[i], &st); + rc = stat(file, &st); assert(rc == 0); if (st.st_mode & S_IFREG) { - ftag_add_one_file(db, &next_id, argv[i]); + ftag_add_one_file(db, &next_id, file); next_id++; } } |
