Task #91302 - fixed.err

back to task #91302
download
Error: GCC_ANALYZER_WARNING (CWE-688):
leptonica-1.85.0/src/utils2.c:2179:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
leptonica-1.85.0/src/utils2.c:2152:1: enter_function: entry to ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2162:8: branch_false: following ‘false’ branch...
leptonica-1.85.0/src/utils2.c:2168:8: branch_false: ...to here
leptonica-1.85.0/src/utils2.c:2168:8: branch_false: following ‘false’ branch (when ‘subdir’ is non-NULL)...
leptonica-1.85.0/src/utils2.c:2170:9: branch_false: ...to here
leptonica-1.85.0/src/utils2.c:2170:8: branch_false: following ‘false’ branch...
leptonica-1.85.0/src/utils2.c:2176:11: call_function: calling ‘genPathname’ from ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2176:11: return_function: returning to ‘lept_mkdir’ from ‘genPathname’
leptonica-1.85.0/src/utils2.c:2179:11: danger: argument 1 (‘genPathname("/tmp", 0)’) NULL where non-null expected
# 2177|          /* Make sure the tmp directory exists */
# 2178|   #ifndef _WIN32
# 2179|->     ret = mkdir(dir, 0777);
# 2180|   #else
# 2181|       attributes = GetFileAttributesA(dir);