projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
If there are no saved sessions, put a grayed "(No sessions)" entry on the saved
[u/mdw/putty]
/
unix
/
uxstore.c
diff --git
a/unix/uxstore.c
b/unix/uxstore.c
index
9d76726
..
2476e4e
100644
(file)
--- a/
unix/uxstore.c
+++ b/
unix/uxstore.c
@@
-638,7
+638,7
@@
void read_random_seed(noise_consumer_t consumer)
fname = make_filename(INDEX_RANDSEED, NULL);
fd = open(fname, O_RDONLY);
sfree(fname);
- if (fd) {
+ if (fd
>= 0
) {
char buf[512];
int ret;
while ( (ret = read(fd, buf, sizeof(buf))) > 0)