Returns full .db path for a project: / .db */
| 2033 | |
| 2034 | /* Returns full .db path for a project: <cache_dir>/<project>.db */ |
| 2035 | static const char *project_db_path(const char *project, char *buf, size_t bufsz) { |
| 2036 | if (!cbm_validate_project_name(project)) { |
| 2037 | buf[0] = '\0'; |
| 2038 | return buf; |
| 2039 | } |
| 2040 | char dir[CBM_SZ_1K]; |
| 2041 | cache_dir(dir, sizeof(dir)); |
| 2042 | snprintf(buf, bufsz, "%s/%s.db", dir, project); |
| 2043 | return buf; |
| 2044 | } |
| 2045 | |
| 2046 | /* ── Store resolution ──────────────────────────────────────────── */ |
| 2047 |
no test coverage detected