chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8716b9e
)
append_to_rev_graph: use local variable
author
Jonas Fonseca
<fonseca@diku.dk>
Wed, 13 Sep 2006 23:28:56 +0000
(
01:28
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Wed, 13 Sep 2006 23:28:56 +0000
(
01:28
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 5a65d245b0cc3cbc77c97d080e1a0186afc41aa1..cc39d7ea8076c1ef6c7882919ea9fde2ce4e4fa9 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-2708,8
+2708,10
@@
graph_parent_is_merge(struct rev_graph *graph)
static inline void
append_to_rev_graph(struct rev_graph *graph, chtype symbol)
{
static inline void
append_to_rev_graph(struct rev_graph *graph, chtype symbol)
{
- if (graph->commit->graph_size < ARRAY_SIZE(graph->commit->graph) - 1)
- graph->commit->graph[graph->commit->graph_size++] = symbol;
+ struct commit *commit = graph->commit;
+
+ if (commit->graph_size < ARRAY_SIZE(commit->graph) - 1)
+ commit->graph[commit->graph_size++] = symbol;
}
static void
}
static void