diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-04-07 02:03:48 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-04-07 02:03:48 +0000 |
commit | c1cfe3fae2e2f09f16fee346ed9a440e9d4605c4 (patch) | |
tree | 68aafe60aae1e52f36f491749230e580c45ca70a /res/stasis_recording | |
parent | 79fb8c32a6d507a458e284f46a0f4794c52b8b93 (diff) |
clang compiler warnings: Fix non-literal-null-conversion warnings
Clang will flag errors when a char pointer is set to '\0', as opposed to a
value that the char pointer points to. This patch fixes this warning
in a variety of locations.
Review: https://reviewboard.asterisk.org/r/4551
ASTERISK-24917
Reported by: dkdegroot
patches:
rb4551.patch submitted by dkdegroot (License 6600)
........
Merged revisions 434187 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 434188 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/stasis_recording')
-rw-r--r-- | res/stasis_recording/stored.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/stasis_recording/stored.c b/res/stasis_recording/stored.c index 6cc60fd28..59c07f8de 100644 --- a/res/stasis_recording/stored.c +++ b/res/stasis_recording/stored.c @@ -470,7 +470,7 @@ int stasis_app_stored_recording_copy(struct stasis_app_stored_recording *src_rec /* Drop the extension if specified, core will do this for us */ format = strrchr(dst_file, '.'); if (format) { - format = '\0'; + *format = '\0'; } /* See if any intermediary directories need to be made */ |