Returns full .db path for a project: / .db */
| 1895 | |
| 1896 | /* Returns full .db path for a project: <cache_dir>/<project>.db */ |
| 1897 | static const char *project_db_path(const char *project, char *buf, size_t bufsz) { |
| 1898 | if (!cbm_validate_project_name(project)) { |
| 1899 | buf[0] = '\0'; |
| 1900 | return buf; |
| 1901 | } |
| 1902 | char dir[CBM_SZ_1K]; |
| 1903 | cache_dir(dir, sizeof(dir)); |
| 1904 | snprintf(buf, bufsz, "%s/%s.db", dir, project); |
| 1905 | return buf; |
| 1906 | } |
| 1907 | |
| 1908 | /* ── Store resolution ──────────────────────────────────────────── */ |
| 1909 |
no test coverage detected