Commit 157aaea
log_ref_setup: don't return stack-allocated array
859c301 (refs: split log_ref_write logic into log_ref_setup,
2010-05-21) refactors the stack allocation of the log_file array into
the new log_ref_setup() function, but passes it back to the caller.
Since the original intent seems to have been to split the work between
log_ref_setup and log_ref_write, make it the caller's responsibility
to allocate the buffer.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 86e8e7a commit 157aaea
3 files changed
+15
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
1261 | | - | |
| 1261 | + | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | | - | |
1265 | 1264 | | |
1266 | | - | |
1267 | | - | |
| 1265 | + | |
1268 | 1266 | | |
1269 | 1267 | | |
1270 | 1268 | | |
1271 | 1269 | | |
1272 | 1270 | | |
1273 | | - | |
| 1271 | + | |
1274 | 1272 | | |
1275 | | - | |
| 1273 | + | |
1276 | 1274 | | |
1277 | 1275 | | |
1278 | 1276 | | |
1279 | | - | |
| 1277 | + | |
1280 | 1278 | | |
1281 | 1279 | | |
1282 | 1280 | | |
1283 | 1281 | | |
1284 | 1282 | | |
1285 | | - | |
| 1283 | + | |
1286 | 1284 | | |
1287 | | - | |
| 1285 | + | |
1288 | 1286 | | |
1289 | | - | |
| 1287 | + | |
1290 | 1288 | | |
1291 | 1289 | | |
1292 | 1290 | | |
1293 | 1291 | | |
1294 | | - | |
| 1292 | + | |
1295 | 1293 | | |
1296 | 1294 | | |
1297 | | - | |
| 1295 | + | |
1298 | 1296 | | |
1299 | 1297 | | |
1300 | 1298 | | |
| |||
1305 | 1303 | | |
1306 | 1304 | | |
1307 | 1305 | | |
1308 | | - | |
| 1306 | + | |
1309 | 1307 | | |
1310 | 1308 | | |
1311 | 1309 | | |
1312 | 1310 | | |
1313 | 1311 | | |
1314 | 1312 | | |
1315 | | - | |
| 1313 | + | |
1316 | 1314 | | |
1317 | 1315 | | |
1318 | 1316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments