Returns full .db path for a project: / .db */
| 969 | |
| 970 | /* Returns full .db path for a project: <cache_dir>/<project>.db */ |
| 971 | static const char *project_db_path(const char *project, char *buf, size_t bufsz) { |
| 972 | if (!cbm_validate_project_name(project)) { |
| 973 | buf[0] = '\0'; |
| 974 | return buf; |
| 975 | } |
| 976 | char dir[CBM_SZ_1K]; |
| 977 | cache_dir(dir, sizeof(dir)); |
| 978 | snprintf(buf, bufsz, "%s/%s.db", dir, project); |
| 979 | return buf; |
| 980 | } |
| 981 | |
| 982 | /* ── Store resolution ──────────────────────────────────────────── */ |
| 983 |
no test coverage detected