From ab9c3ac3301241a1b1da62d208d3e7cf326438a7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 23 Sep 2014 00:22:59 +0100 Subject: Reordered identity attributes in caps cache for readability --- src/xmpp/capabilities.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index 645eed68..4e710689 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -83,15 +83,15 @@ caps_add(const char * const ver, Capabilities *caps) { gboolean cached = g_key_file_has_group(cache, ver); if (!cached) { + if (caps->name) { + g_key_file_set_string(cache, ver, "name", caps->name); + } if (caps->category) { g_key_file_set_string(cache, ver, "category", caps->category); } if (caps->type) { g_key_file_set_string(cache, ver, "type", caps->type); } - if (caps->name) { - g_key_file_set_string(cache, ver, "name", caps->name); - } if (caps->software) { g_key_file_set_string(cache, ver, "software", caps->software); } -- cgit 1.4.1-2-gfad0 s='sub right'>Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/012transform.cc
blob: f62349faad8aec163e24597becf0e3cbc68381da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102