aboutsummaryrefslogtreecommitdiffstats
path: root/src/xrdb.c
diff options
context:
space:
mode:
authorPaul Eggert2013-11-13 17:52:18 -0800
committerPaul Eggert2013-11-13 17:52:18 -0800
commitd672ac3c611453c624948ed8cc2ced65cadc3400 (patch)
treea5b52d6ff15caf0a755cc0729d29474a5ae4a6a3 /src/xrdb.c
parentff6ec81d6dd564080d8407c0a0eae36461b3b75d (diff)
downloademacs-d672ac3c611453c624948ed8cc2ced65cadc3400.tar.gz
emacs-d672ac3c611453c624948ed8cc2ced65cadc3400.zip
Prefer tail calls.
* lib-src/ebrowse.c (xstrdup): * lib-src/etags.c (savenstr): * lwlib/lwlib.c (safe_strdup): * src/xfns.c (xic_create_fontsetname): * src/xrdb.c (gethomedir): Prefer tail calls. * lib-src/etags.c (concat): Omit unnecessary assignment.
Diffstat (limited to 'src/xrdb.c')
-rw-r--r--src/xrdb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index 52988f0818a..ea823b2b313 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -234,9 +234,7 @@ gethomedir (void)
234 234
235 copy = xmalloc (strlen (ptr) + 2); 235 copy = xmalloc (strlen (ptr) + 2);
236 strcpy (copy, ptr); 236 strcpy (copy, ptr);
237 strcat (copy, "/"); 237 return strcat (copy, "/");
238
239 return copy;
240} 238}
241 239
242 240