Chromium Code Reviews| Index: base/file_util_posix.cc |
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc |
| index 434c859f945769c75b9c73bafca836ae3131b1de..4d9cf42080edd90ddc793b43fa1f924f0674f994 100644 |
| --- a/base/file_util_posix.cc |
| +++ b/base/file_util_posix.cc |
| @@ -420,8 +420,10 @@ static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir, |
| // this should be OK since mkdtemp just replaces characters in place |
| char* buffer = const_cast<char*>(sub_dir_string.c_str()); |
| char* dtemp = mkdtemp(buffer); |
| - if (!dtemp) |
| + if (!dtemp) { |
| + DPLOG(ERROR) << "mkdtemp"; |
|
Nico
2010/07/28 20:57:52
<< errno?
or does DPLOG do that already?
|
| return false; |
| + } |
| *new_dir = FilePath(dtemp); |
| return true; |
| } |