Fossil SCM
Use fossil_strdup() consistent with the rest of the code.
Commit
ff1926143db0f2a681adead031fe3e5a86afb60e
Parent
25a7cd1e0fdb00f…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1951,11 +1951,11 @@ | ||
| 1951 | 1951 | } |
| 1952 | 1952 | blob_reset(&versionedPathname); |
| 1953 | 1953 | if( found ){ |
| 1954 | 1954 | blob_trim(&setting); /* Avoid non-obvious problems with line endings |
| 1955 | 1955 | ** on boolean properties */ |
| 1956 | - zVersionedSetting = strdup(blob_str(&setting)); | |
| 1956 | + zVersionedSetting = fossil_strdup(blob_str(&setting)); | |
| 1957 | 1957 | } |
| 1958 | 1958 | blob_reset(&setting); |
| 1959 | 1959 | /* Store result in cache, which can be the value or 0 if not found */ |
| 1960 | 1960 | cacheEntry = (struct _cacheEntry*)fossil_malloc(sizeof(struct _cacheEntry)); |
| 1961 | 1961 | cacheEntry->next = cache; |
| 1962 | 1962 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1951,11 +1951,11 @@ | |
| 1951 | } |
| 1952 | blob_reset(&versionedPathname); |
| 1953 | if( found ){ |
| 1954 | blob_trim(&setting); /* Avoid non-obvious problems with line endings |
| 1955 | ** on boolean properties */ |
| 1956 | zVersionedSetting = strdup(blob_str(&setting)); |
| 1957 | } |
| 1958 | blob_reset(&setting); |
| 1959 | /* Store result in cache, which can be the value or 0 if not found */ |
| 1960 | cacheEntry = (struct _cacheEntry*)fossil_malloc(sizeof(struct _cacheEntry)); |
| 1961 | cacheEntry->next = cache; |
| 1962 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1951,11 +1951,11 @@ | |
| 1951 | } |
| 1952 | blob_reset(&versionedPathname); |
| 1953 | if( found ){ |
| 1954 | blob_trim(&setting); /* Avoid non-obvious problems with line endings |
| 1955 | ** on boolean properties */ |
| 1956 | zVersionedSetting = fossil_strdup(blob_str(&setting)); |
| 1957 | } |
| 1958 | blob_reset(&setting); |
| 1959 | /* Store result in cache, which can be the value or 0 if not found */ |
| 1960 | cacheEntry = (struct _cacheEntry*)fossil_malloc(sizeof(struct _cacheEntry)); |
| 1961 | cacheEntry->next = cache; |
| 1962 |