diff options
author | sletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2010-03-06 22:38:56 +0000 |
---|---|---|
committer | sletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2010-03-06 22:38:56 +0000 |
commit | 85a525d60b79ef149c3f2d21326928daf5b3c963 (patch) | |
tree | 01d32e15505cbc067e0f95b2cb05517913eae5e3 /solaris | |
parent | 8b069b9378fb8ff49cf66f17df237edd1282fa06 (diff) | |
download | jack2-85a525d60b79ef149c3f2d21326928daf5b3c963.tar.gz |
Fix errors found by cppcheck.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3947 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'solaris')
-rw-r--r-- | solaris/oss/JackBoomerDriver.cpp | 8 | ||||
-rw-r--r-- | solaris/oss/JackOSSDriver.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/solaris/oss/JackBoomerDriver.cpp b/solaris/oss/JackBoomerDriver.cpp index 25056326..f10b2e89 100644 --- a/solaris/oss/JackBoomerDriver.cpp +++ b/solaris/oss/JackBoomerDriver.cpp @@ -985,20 +985,20 @@ EXPORT Jack::JackDriverClientInterface* driver_initialize(Jack::JackLockedEngine case 'C': capture = true; if (strcmp(param->value.str, "none") != 0) { - capture_pcm_name = strdup(param->value.str); + capture_pcm_name = param->value.str; } break; case 'P': playback = true; if (strcmp(param->value.str, "none") != 0) { - playback_pcm_name = strdup(param->value.str); + playback_pcm_name = param->value.str; } break; case 'd': - playback_pcm_name = strdup (param->value.str); - capture_pcm_name = strdup (param->value.str); + playback_pcm_name = param->value.str; + capture_pcm_name = param->value.str; break; case 'e': diff --git a/solaris/oss/JackOSSDriver.cpp b/solaris/oss/JackOSSDriver.cpp index af0ed43b..7890f6ae 100644 --- a/solaris/oss/JackOSSDriver.cpp +++ b/solaris/oss/JackOSSDriver.cpp @@ -904,20 +904,20 @@ EXPORT Jack::JackDriverClientInterface* driver_initialize(Jack::JackLockedEngine case 'C': capture = true; if (strcmp(param->value.str, "none") != 0) { - capture_pcm_name = strdup(param->value.str); + capture_pcm_name = param->value.str; } break; case 'P': playback = true; if (strcmp(param->value.str, "none") != 0) { - playback_pcm_name = strdup(param->value.str); + playback_pcm_name = param->value.str; } break; case 'd': - playback_pcm_name = strdup (param->value.str); - capture_pcm_name = strdup (param->value.str); + playback_pcm_name = param->value.str; + capture_pcm_name = param->value.str; break; case 'b': |