]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix small bug introduced while cleaning up compiler warnings
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 2 Nov 2008 19:09:41 +0000 (19:09 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 2 Nov 2008 19:09:41 +0000 (19:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153618 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index fd61cb7a83f32d26e89a7873f0101a7bc771145e..c90c6fd11761afc4852f3f40c7bf10457d4cc284 100644 (file)
@@ -941,7 +941,7 @@ static int moh_scan_files(struct mohclass *class) {
                ast_log(LOG_WARNING, "getcwd() failed: %s\n", strerror(errno));
                return -1;
        }
-       if (chdir(path) < 0) {
+       if (chdir(dir_path) < 0) {
                ast_log(LOG_WARNING, "chdir() failed: %s\n", strerror(errno));
                return -1;
        }