chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4dadf1a
)
Fix defect 16 (GTK assertion due to config->password being NULL).
author
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 24 Mar 2008 20:57:09 +0000
(20:57 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 24 Mar 2008 20:57:09 +0000
(20:57 +0000)
disobedience/login.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/login.c
b/disobedience/login.c
index 3dff339b4431c8fe7a223616fbb9bf6f03d8856f..8dc8f0af9a73e234ff73e5b49d23530cd2e6073a 100644
(file)
--- a/
disobedience/login.c
+++ b/
disobedience/login.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* This file is part of DisOrder
- * Copyright (C) 2007 Richard Kettlewell
+ * Copyright (C) 2007
, 2008
Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-66,7
+66,7
@@
static void default_connect(void) {
static const char *get_hostname(void) { return config->connect.s[0]; }
static const char *get_service(void) { return config->connect.s[1]; }
static const char *get_username(void) { return config->username; }
static const char *get_hostname(void) { return config->connect.s[0]; }
static const char *get_service(void) { return config->connect.s[1]; }
static const char *get_username(void) { return config->username; }
-static const char *get_password(void) { return config->password; }
+static const char *get_password(void) { return config->password
? config->password : ""
; }
static void set_hostname(const char *s) { config->connect.s[0] = (char *)s; }
static void set_service(const char *s) { config->connect.s[1] = (char *)s; }
static void set_hostname(const char *s) { config->connect.s[0] = (char *)s; }
static void set_service(const char *s) { config->connect.s[1] = (char *)s; }