Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

samples: separate code blocks, remove extra empty lines at the end of…

… files
  • Loading branch information...
commit 458b8ce2cc450596f2130eec1e4023f4bb4e61ab 1 parent d3e990b
@XhmikosR XhmikosR authored PKEuS committed
View
2  samples/AssignmentAddressToInteger/bad.c
@@ -3,9 +3,9 @@ int foo(int *p)
int a = p;
return a + 4;
}
+
int main()
{
int i[10];
foo(i);
}
-
View
3  samples/AssignmentAddressToInteger/good.c
@@ -2,10 +2,9 @@ int* foo(int *p)
{
return p + 4;
}
+
int main()
{
int i[10];
foo(i);
}
-
-
View
1  samples/arrayIndexOutOfBounds/bad.c
@@ -6,4 +6,3 @@ int main()
a[2] = 0;
return a[0];
}
-
View
1  samples/arrayIndexOutOfBounds/good.c
@@ -6,4 +6,3 @@ int main()
a[2] = 0;
return a[0];
}
-
View
1  samples/autoVariables/bad.c
@@ -9,4 +9,3 @@ int main()
int *c;
foo(&c);
}
-
View
1  samples/autoVariables/good.c
@@ -10,4 +10,3 @@ int main()
int *c = &b;
foo(&c);
}
-
View
1  samples/bufferAccessOutOfBounds/bad.c
@@ -6,4 +6,3 @@ int main()
a[i] = 0;
return a[0];
}
-
View
1  samples/bufferAccessOutOfBounds/good.c
@@ -6,4 +6,3 @@ int main()
a[i] = 0;
return a[0];
}
-
View
1  samples/erase/bad.cpp
@@ -12,4 +12,3 @@ int main()
}
}
}
-
View
1  samples/erase/good.cpp
@@ -14,4 +14,3 @@ int main()
}
}
}
-
View
1  samples/memleak/good.c
@@ -8,4 +8,3 @@ int main()
free(a);
return result;
}
-
View
1  samples/outOfBounds/bad.c
@@ -4,4 +4,3 @@ int main()
char str[5];
snprintf(str, 10, "%s", "abc");
}
-
View
1  samples/outOfBounds/good.c
@@ -4,4 +4,3 @@ int main()
char str[10];
snprintf(str, 10, "%s", "abc");
}
-
View
1  samples/resourceLeak/bad.c
@@ -7,4 +7,3 @@ int main()
return 0;
}
-
View
1  samples/resourceLeak/good.c
@@ -7,4 +7,3 @@ int main()
fclose(a);
return 0;
}
-
View
1  samples/syntaxError/bad.c
@@ -3,4 +3,3 @@ int main()
#ifndef A
}
#endif
-
View
1  samples/syntaxError/good.c
@@ -3,4 +3,3 @@ int main()
#ifndef A
#endif
}
-
Please sign in to comment.
Something went wrong with that request. Please try again.