~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dead comment about writing settings, and query one about reading them.
[sgt/putty]
/
unix
/
uxstore.c
diff --git
a/unix/uxstore.c
b/unix/uxstore.c
index
b04d557
..
ecd3ff1
100644
(file)
--- a/
unix/uxstore.c
+++ b/
unix/uxstore.c
@@
-29,7
+29,7
@@
static char *mungestr(const char *in)
{
char *out, *ret;
{
char *out, *ret;
- if (!in)
+ if (!in
|| !*in
)
in = "Default Settings";
ret = out = snewn(3*strlen(in)+1, char);
in = "Default Settings";
ret = out = snewn(3*strlen(in)+1, char);
@@
-127,13
+127,6
@@
static char *fgetline(FILE *fp)
return ret;
}
return ret;
}
-/*
- * For the moment, the only existing Unix utility is pterm and that
- * has no GUI configuration at all, so our write routines need do
- * nothing. Eventually I suppose these will read and write an rc
- * file somewhere or other.
- */
-
void *open_settings_w(const char *sessionname, char **errmsg)
{
char filename[FILENAME_MAX];
void *open_settings_w(const char *sessionname, char **errmsg)
{
char filename[FILENAME_MAX];
@@
-188,6
+181,7
@@
void close_settings_w(void *handle)
* PuTTY's inbuilt defaults, but that the disk files will then
* override those. This isn't optimal, but it's the best I can
* immediately work out.
* PuTTY's inbuilt defaults, but that the disk files will then
* override those. This isn't optimal, but it's the best I can
* immediately work out.
+ * FIXME: the above comment is a bit out of date. Did it happen?
*/
struct keyval {
*/
struct keyval {