Returns full .db path for a project: / .db */
| 2250 | |
| 2251 | /* Returns full .db path for a project: <cache_dir>/<project>.db */ |
| 2252 | static const char *project_db_path(const char *project, char *buf, size_t bufsz) { |
| 2253 | if (!cbm_validate_project_name(project)) { |
| 2254 | buf[0] = '\0'; |
| 2255 | return buf; |
| 2256 | } |
| 2257 | char dir[CBM_SZ_1K]; |
| 2258 | cache_dir(dir, sizeof(dir)); |
| 2259 | snprintf(buf, bufsz, "%s/%s.db", dir, project); |
| 2260 | return buf; |
| 2261 | } |
| 2262 | |
| 2263 | /* ── Store resolution ──────────────────────────────────────────── */ |
| 2264 |
no test coverage detected