summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cee86ae87b..ca61a97759 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1136,7 +1136,7 @@ int ff_mkdir_p(const char *path)
}
}
- if ((*(pos - 1) != '/') || (*(pos - 1) != '\\')) {
+ if ((*(pos - 1) != '/') && (*(pos - 1) != '\\')) {
ret = mkdir(temp, 0755);
}