summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-06-12 11:35:46 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-06-12 11:35:46 (GMT)
commite6a6e65d46196125a5baad4aeb1942aa043236fa (patch)
treef86c40c50b6791541ebdc4ba45a3e06b7deb6b3c /src/util.cpp
parentfa4e3f5f955e602f02545e049361510f3334cfff (diff)
downloadDoxygen-e6a6e65d46196125a5baad4aeb1942aa043236fa.zip
Doxygen-e6a6e65d46196125a5baad4aeb1942aa043236fa.tar.gz
Doxygen-e6a6e65d46196125a5baad4aeb1942aa043236fa.tar.bz2
Catch all wrong mkdir calls (coverity)
- Always catch the output of `mkdir` - corrected an incorrect message (context.cpp)
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 7006f26..1624b1c 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5022,10 +5022,16 @@ void createSubDirs(QDir &d)
int l1,l2;
for (l1=0;l1<16;l1++)
{
- d.mkdir(QCString().sprintf("d%x",l1));
+ if (!d.mkdir(QCString().sprintf("d%x",l1)))
+ {
+ term("Failed to create output directory '%s'\n",(QCString().sprintf("d%x",l1)).data());
+ }
for (l2=0;l2<256;l2++)
{
- d.mkdir(QCString().sprintf("d%x/d%02x",l1,l2));
+ if (!d.mkdir(QCString().sprintf("d%x/d%02x",l1,l2)))
+ {
+ term("Failed to create output directory '%s'\n",(QCString().sprintf("d%x/d%02x",l1,l2)).data());
+ }
}
}
}