fix small bug introduced while cleaning up compiler warnings

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2008-11-02 19:09:41 +00:00
parent ccdc38bb4e
commit 60ef8fdae8
1 changed files with 1 additions and 1 deletions

View 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;
}