Skip to content

Commit 4ecb5e3

Browse files
authored
Merge pull request #45 from flatcar/fix-string-after-lifetime
Potential fix for code scanning alert no. 2: Use of string after lifetime ends
2 parents bf4a50f + 547c09a commit 4ecb5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/update_engine/test_http_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ class UrlTerms {
466466
return terms[index];
467467
}
468468
inline const char *GetCStr(const off_t index) const {
469-
return Get(index).c_str();
469+
return terms[index].c_str();
470470
}
471471
inline int GetInt(const off_t index) const {
472472
return atoi(GetCStr(index));

0 commit comments

Comments
 (0)