Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43a1e6
)
Allocate dc_srv_local in the .data segment rather than on the heap.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 5 May 2008 00:28:02 +0000
(
02:28
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 5 May 2008 00:28:02 +0000
(
02:28
+0200)
lib/uilib.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/uilib.c
b/lib/uilib.c
index
dfe414c
..
a299395
100644
(file)
--- a/
lib/uilib.c
+++ b/
lib/uilib.c
@@
-104,7
+104,8
@@
struct {
int family;
int sentcreds;
} servinfo;
-char *dc_srv_local;
+char dc_srv_local_addr;
+char *dc_srv_local = &dc_srv_local_addr;
static void message(int bits, char *format, ...)
{
@@
-320,7
+321,6
@@
int dc_init(void)
{
if((ichandle = iconv_open("wchar_t", "utf-8")) == (iconv_t)-1)
return(-1);
- dc_srv_local = sstrdup("");
initcmds();
return(0);
}