Returns full .db path for a project: / .db */
| 1881 | |
| 1882 | /* Returns full .db path for a project: <cache_dir>/<project>.db */ |
| 1883 | static const char *project_db_path(const char *project, char *buf, size_t bufsz) { |
| 1884 | if (!cbm_validate_project_name(project)) { |
| 1885 | buf[0] = '\0'; |
| 1886 | return buf; |
| 1887 | } |
| 1888 | char dir[CBM_SZ_1K]; |
| 1889 | cache_dir(dir, sizeof(dir)); |
| 1890 | snprintf(buf, bufsz, "%s/%s.db", dir, project); |
| 1891 | return buf; |
| 1892 | } |
| 1893 | |
| 1894 | /* ── Store resolution ──────────────────────────────────────────── */ |
| 1895 |
no test coverage detected