Skip to content

Commit 790c83c

Browse files
committed
Merge branch 'maint'
2 parents 538d123 + bdd478d commit 790c83c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Documentation/git.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ git so take care if using Cogito etc.
650650
If the 'GIT_DIR' environment variable is set then it
651651
specifies a path to use instead of the default `.git`
652652
for the base of the repository.
653+
The '--git-dir' command-line option also sets this value.
653654

654655
'GIT_WORK_TREE'::
655656
Set the path to the working tree. The value will not be

builtin/pack-redundant.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,14 @@ static void pll_free(struct pll *l)
301301
*/
302302
static struct pll * get_permutations(struct pack_list *list, int n)
303303
{
304-
struct pll *subset, *ret = NULL, *new_pll = NULL, *pll;
304+
struct pll *subset, *ret = NULL, *new_pll = NULL;
305305

306306
if (list == NULL || pack_list_size(list) < n || n == 0)
307307
return NULL;
308308

309309
if (n == 1) {
310310
while (list) {
311-
new_pll = xmalloc(sizeof(pll));
311+
new_pll = xmalloc(sizeof(*new_pll));
312312
new_pll->pl = NULL;
313313
pack_list_insert(&new_pll->pl, list);
314314
new_pll->next = ret;
@@ -321,7 +321,7 @@ static struct pll * get_permutations(struct pack_list *list, int n)
321321
while (list->next) {
322322
subset = get_permutations(list->next, n - 1);
323323
while (subset) {
324-
new_pll = xmalloc(sizeof(pll));
324+
new_pll = xmalloc(sizeof(*new_pll));
325325
new_pll->pl = subset->pl;
326326
pack_list_insert(&new_pll->pl, list);
327327
new_pll->next = ret;

0 commit comments

Comments
 (0)