Fossil SCM

Use fossil_strdup() consistent with the rest of the code.

andybradford 2015-04-30 04:38 UTC andygoth-versioned-open
Commit ff1926143db0f2a681adead031fe3e5a86afb60e
1 file changed +1 -1
+1 -1
--- src/db.c
+++ src/db.c
@@ -1951,11 +1951,11 @@
19511951
}
19521952
blob_reset(&versionedPathname);
19531953
if( found ){
19541954
blob_trim(&setting); /* Avoid non-obvious problems with line endings
19551955
** on boolean properties */
1956
- zVersionedSetting = strdup(blob_str(&setting));
1956
+ zVersionedSetting = fossil_strdup(blob_str(&setting));
19571957
}
19581958
blob_reset(&setting);
19591959
/* Store result in cache, which can be the value or 0 if not found */
19601960
cacheEntry = (struct _cacheEntry*)fossil_malloc(sizeof(struct _cacheEntry));
19611961
cacheEntry->next = cache;
19621962
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button