| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,3 +156,10 @@ void fmt_via_strcpy(char *data) { | |||
| 156 | 156 | strcpy(data, "some string"); | |
| 157 | 157 | printf(data); // BAD | |
| 158 | 158 | } | |
| 159 | + | ||
| 160 | + void fmt_with_assignment() { | ||
| 161 | + const char *x, *y; | ||
| 162 | + | ||
| 163 | + x = y = "a"; | ||
| 164 | + printf(y); // GOOD | ||
| 165 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments