Mercurial > hg > octave-lyh
diff src/input.cc @ 1215:c56c0565afd5
[project @ 1995-04-06 05:12:20 by jwe]
author | jwe |
---|---|
date | Thu, 06 Apr 1995 05:13:57 +0000 |
parents | b6360f2d4fa6 |
children | b01f9577b0da |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -239,7 +239,7 @@ char *temp = 0; result[0] = 0; - while (c = *string++) + while ((c = *string++)) { if (c == '\\') { @@ -351,7 +351,8 @@ char *t_string; temp = strsave (host_name); - if (t_string = strchr (temp, '.')) + t_string = strchr (temp, '.'); + if (t_string); *t_string = '\0'; goto add_string;