mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Always use string instance to avoid crash risk. 3.0.95
This commit is contained in:
parent
b794c9e4ec
commit
10464a5fbe
15 changed files with 119 additions and 14 deletions
|
@ -51,7 +51,7 @@ bool srs_string_is_rtmp(string url)
|
|||
return srs_string_starts_with(url, "rtmp://");
|
||||
}
|
||||
|
||||
bool srs_is_digit_number(const string& str)
|
||||
bool srs_is_digit_number(string str)
|
||||
{
|
||||
if (str.empty()) {
|
||||
return false;
|
||||
|
|
|
@ -48,7 +48,7 @@ extern bool srs_string_is_rtmp(std::string url);
|
|||
// is_digit("10e3") === false
|
||||
// is_digit("!1234567890") === false
|
||||
// is_digit("") === false
|
||||
extern bool srs_is_digit_number(const std::string& str);
|
||||
extern bool srs_is_digit_number(std::string str);
|
||||
|
||||
// Get local ip, fill to @param ips
|
||||
extern std::vector<std::string>& srs_get_local_ips();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue