Skip to content

Commit f1540c5

Browse files
Зишан Мирзаzimirza
authored andcommitted
fix argument number
1 parent 18e882e commit f1540c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3586,7 +3586,7 @@ void StdLibraryFunctionsChecker::initFunctionSummaries(
35863586
.ArgConstraint(BufferSize(
35873587
/*Buffer=*/ArgNo(1),
35883588
/*MinBufSize=*/BVF.getValue(26, IntTy))));
3589-
.ArgConstraint(NotNull(ArgNo(1)))
3589+
.ArgConstraint(NotNull(ArgNo(2)))
35903590

35913591
// struct tm *gmtime_r(const time_t *restrict timer,
35923592
// struct tm *restrict result);

0 commit comments

Comments
 (0)