projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed uninitialized empty array descriptor
[cparser]
/
parsetest
/
cp_error018.c
diff --git
a/parsetest/cp_error018.c
b/parsetest/cp_error018.c
index
e0db872
..
4b1365a
100644
(file)
--- a/
parsetest/cp_error018.c
+++ b/
parsetest/cp_error018.c
@@
-2,11
+2,20
@@
int puts(const char *msg);
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
- char *arg = argc > 1 ? argv[1] : 0;
+ void *nu = 0;
+ char *arg1 = argc > 1 ? argv[1] : 0;
+ char *arg2 = argc <= 1 ? 0 : argv[1];
+ char *arg3 = argc > 1 ? argv[1] : nu;
+ char *arg4 = argc <= 1 ? nu : argv[1];
- if(arg != 0) {
- puts(arg);
+ int blo = (int) (argc < 100 ? 0 : argv[1]);
+
+ if(arg1 != 0) {
+ puts(arg1);
+ puts(arg2);
+ puts(arg3);
+ puts(arg4);
}
}
- return
0
;
+ return
blo
;
}
}