Mercurial > hg > sidinfo
comparison sidinfo.c @ 244:1beaad0d5219
Ensure that the specified HVSC path has '/' path separator at the end.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Jan 2020 22:58:42 +0200 |
parents | a3dd87b7c00b |
children | f50947e8ff93 |
comparison
equal
deleted
inserted
replaced
243:a3dd87b7c00b | 244:1beaad0d5219 |
---|---|
1277 } | 1277 } |
1278 | 1278 |
1279 // Check if HVSC path is set | 1279 // Check if HVSC path is set |
1280 if (setHVSCPath != NULL) | 1280 if (setHVSCPath != NULL) |
1281 { | 1281 { |
1282 // Check path separator at end | |
1283 if (th_strrcasecmp(setHVSCPath, "/") == NULL) | |
1284 th_pstr_printf(&setHVSCPath, "%s/", setHVSCPath); | |
1285 | |
1282 // If SLDB path is not set, autocheck for .md5 and .txt | 1286 // If SLDB path is not set, autocheck for .md5 and .txt |
1283 if (setSLDBPath == NULL) | 1287 if (setSLDBPath == NULL) |
1284 setSLDBPath = siCheckHVSCFilePath(SET_SLDB_FILEBASE, ".md5"); | 1288 setSLDBPath = siCheckHVSCFilePath(SET_SLDB_FILEBASE, ".md5"); |
1285 | 1289 |
1286 if (setSLDBPath == NULL) | 1290 if (setSLDBPath == NULL) |