diff options
author | mykola.salomatin <mykola.salomatin@globallogic.com> | 2020-12-18 19:29:03 +0200 |
---|---|---|
committer | mykola.salomatin <mykola.salomatin@globallogic.com> | 2020-12-18 19:29:03 +0200 |
commit | f3626b3090ceb81bb16f4a8a5f21486347b690de (patch) | |
tree | 3d088932174342a90e37b693d0dd71bd6a55d050 /include | |
parent | e3e2005d248b42fabf09f77dec713a052bd0aa3b (diff) | |
download | mts-io-sysfs-f3626b3090ceb81bb16f4a8a5f21486347b690de.tar.gz mts-io-sysfs-f3626b3090ceb81bb16f4a8a5f21486347b690de.tar.bz2 mts-io-sysfs-f3626b3090ceb81bb16f4a8a5f21486347b690de.zip |
[MTX-3769] Conduit 300: New Capability - TPM
Diffstat (limited to 'include')
-rw-r--r-- | include/Utility/Utility.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/Utility/Utility.h b/include/Utility/Utility.h index 4fb54df..8d68baa 100644 --- a/include/Utility/Utility.h +++ b/include/Utility/Utility.h @@ -70,13 +70,13 @@ inline mode_t findFileGlob(std::string file) { mode_t result = -1; if (0 == glob(file.c_str(), 0, NULL, &gl)) { - if (0 < gl.gl_pathc && 0 == stat(gl.gl_pathv[0], &buf)) { - result = buf.st_mode & S_IFMT; - } - globfree(&gl); + if (0 < gl.gl_pathc && 0 == stat(gl.gl_pathv[0], &buf)) { + result = buf.st_mode & S_IFMT; + } + globfree(&gl); } - return result; + return result; } #endif /* UTILITIES_H_ */ |