@@ -39,7 +39,7 @@ void getenv_test2(void) {
39
39
* p ; // no-warning
40
40
41
41
p2 = getenv ("VAR2" );
42
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
42
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
43
43
44
44
* p ;
45
45
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -55,7 +55,7 @@ void getenv_test3(void) {
55
55
p = getenv ("VAR2" );
56
56
// expected-note@-1{{previous function call was here}}
57
57
p2 = getenv ("VAR2" );
58
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
58
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
59
59
60
60
p3 = getenv ("VAR3" );
61
61
@@ -70,7 +70,7 @@ void getenv_test4(void) {
70
70
p = getenv ("VAR" );
71
71
// expected-note@-1{{previous function call was here}}
72
72
p2 = getenv ("VAR2" );
73
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
73
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
74
74
p3 = getenv ("VAR3" );
75
75
76
76
* p ;
@@ -85,7 +85,7 @@ void getenv_test5(void) {
85
85
p2 = getenv ("VAR2" );
86
86
// expected-note@-1{{previous function call was here}}
87
87
p3 = getenv ("VAR3" );
88
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
88
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
89
89
90
90
* p2 ;
91
91
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -103,7 +103,7 @@ void getenv_test6(void) {
103
103
104
104
p2 = getenv ("VAR3" );
105
105
// expected-note@-1{{previous function call was here}}
106
- // expected-note@-2{{'getenv' call may invalidate the the result of the previous 'getenv'}}
106
+ // expected-note@-2{{'getenv' call may invalidate the result of the previous 'getenv'}}
107
107
108
108
* p ;
109
109
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -112,7 +112,7 @@ void getenv_test6(void) {
112
112
* p2 ; // no-warning
113
113
114
114
p = getenv ("VAR4" );
115
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
115
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
116
116
117
117
* p ; // no-warning
118
118
* p2 ;
@@ -127,7 +127,7 @@ void getenv_test7(void) {
127
127
* p ; // no-warning
128
128
129
129
p2 = getenv ("VAR2" );
130
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
130
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
131
131
132
132
foo (p );
133
133
// expected-warning@-1{{use of invalidated pointer 'p' in a function call}}
@@ -152,7 +152,7 @@ void getenv_test8(void) {
152
152
if ( !array [1 ] )
153
153
// expected-note@-1{{Taking true branch}}
154
154
array [1 ] = getenv ("TMPDIR" );
155
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
155
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
156
156
157
157
* array [0 ];
158
158
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -169,7 +169,7 @@ void getenv_test9(void) {
169
169
170
170
void getenv_test10 (void ) {
171
171
strcmp (getenv ("VAR1" ), getenv ("VAR2" ));
172
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
172
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
173
173
// expected-note@-2{{previous function call was here}}
174
174
// expected-warning@-3{{use of invalidated pointer 'getenv("VAR1")' in a function call}}
175
175
// expected-note@-4{{use of invalidated pointer 'getenv("VAR1")' in a function call}}
@@ -186,7 +186,7 @@ void getenv_test11(void) {
186
186
// expected-note@-1{{previous function call was here}}
187
187
188
188
char * pp = getenv ("VAR2" );
189
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
189
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
190
190
191
191
dereference_pointer (p );
192
192
// expected-note@-1{{Calling 'dereference_pointer'}}
@@ -200,7 +200,7 @@ void getenv_test12(int flag1, int flag2) {
200
200
// expected-note@-1{{Assuming 'flag1' is not equal to 0}}
201
201
// expected-note@-2{{Taking true branch}}
202
202
char * pp = getenv ("VAR2" );
203
- // expected-note@-1{{'getenv' call may invalidate the the result of the previous 'getenv'}}
203
+ // expected-note@-1{{'getenv' call may invalidate the result of the previous 'getenv'}}
204
204
}
205
205
206
206
if (flag2 ) {
@@ -222,7 +222,7 @@ void setlocale_test1(void) {
222
222
* p ; // no-warning
223
223
224
224
p2 = setlocale (0 , "VAR3" );
225
- // expected-note@-1{{'setlocale' call may invalidate the the result of the previous 'setlocale'}}
225
+ // expected-note@-1{{'setlocale' call may invalidate the result of the previous 'setlocale'}}
226
226
227
227
* p ;
228
228
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -242,7 +242,7 @@ void setlocale_test2(int flag) {
242
242
// expected-note@-1{{Assuming 'flag' is not equal to 0}}
243
243
// expected-note@-2{{Taking true branch}}
244
244
p2 = setlocale (0 , "VAR3" );
245
- // expected-note@-1{{'setlocale' call may invalidate the the result of the previous 'setlocale'}}
245
+ // expected-note@-1{{'setlocale' call may invalidate the result of the previous 'setlocale'}}
246
246
}
247
247
248
248
* p ;
@@ -261,7 +261,7 @@ void strerror_test1(void) {
261
261
* p ; // no-warning
262
262
263
263
p2 = strerror (2 );
264
- // expected-note@-1{{'strerror' call may invalidate the the result of the previous 'strerror'}}
264
+ // expected-note@-1{{'strerror' call may invalidate the result of the previous 'strerror'}}
265
265
266
266
* p ;
267
267
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -290,7 +290,7 @@ void strerror_test2(int errno) {
290
290
// expected-note@-1{{Assuming 'errno' is not equal to 0}}
291
291
// expected-note@-2{{Taking true branch}}
292
292
p2 = strerror (errno );
293
- // expected-note@-1{{'strerror' call may invalidate the the result of the previous 'strerror'}}
293
+ // expected-note@-1{{'strerror' call may invalidate the result of the previous 'strerror'}}
294
294
}
295
295
296
296
* p ;
@@ -305,7 +305,7 @@ void asctime_test(void) {
305
305
char * p = asctime (t );
306
306
// expected-note@-1{{previous function call was here}}
307
307
char * pp = asctime (tt );
308
- // expected-note@-1{{'asctime' call may invalidate the the result of the previous 'asctime'}}
308
+ // expected-note@-1{{'asctime' call may invalidate the result of the previous 'asctime'}}
309
309
310
310
* p ;
311
311
// expected-warning@-1{{dereferencing an invalid pointer}}
@@ -316,7 +316,7 @@ void localeconv_test1(void) {
316
316
lconv * lc1 = localeconv ();
317
317
// expected-note@-1{{previous function call was here}}
318
318
lconv * lc2 = localeconv ();
319
- // expected-note@-1{{'localeconv' call may invalidate the the result of the previous 'localeconv'}}
319
+ // expected-note@-1{{'localeconv' call may invalidate the result of the previous 'localeconv'}}
320
320
321
321
* lc1 ;
322
322
// expected-warning@-1{{dereferencing an invalid pointer}}
0 commit comments