diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-06-01 10:47:53 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-06-01 10:47:53 -0500 |
commit | 174a9b5d993563a5c139401189218e6bc1c9277b (patch) | |
tree | 49a5d2393d795a59bb8b7c539c1809f46bdb3ed4 | |
parent | 1e086cf018ea86b3d4ac0494a077cede3311dd93 (diff) | |
parent | cf6cf59646f52dc3de12dac16c3c3824ce9ae927 (diff) |
Merge "stasis_recording: Correct ast_asprintf error checking" into 13
-rw-r--r-- | res/stasis_recording/stored.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/stasis_recording/stored.c b/res/stasis_recording/stored.c index ab056878d..3ad7d82a9 100644 --- a/res/stasis_recording/stored.c +++ b/res/stasis_recording/stored.c @@ -157,7 +157,7 @@ static int handle_find_recording(const char *dir_name, const char *filename, voi return 0; } - if (ast_asprintf(&data->file_with_ext, "%s/%s", dir_name, filename)) { + if (ast_asprintf(&data->file_with_ext, "%s/%s", dir_name, filename) < 0) { return -1; } @@ -252,7 +252,7 @@ static int handle_scan_file(const char *dir_name, const char *filename, void *ob return 0; } - if (ast_asprintf(&filepath, "%s/%s", dir_name, filename)) { + if (ast_asprintf(&filepath, "%s/%s", dir_name, filename) < 0) { return -1; } |