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