diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-07-01 11:33:42 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-07-01 11:33:42 -0500 |
commit | 3a9e2224b336e2ac7ac8773b742552cbf68dae37 (patch) | |
tree | 2ea3ed84ec60fbcc7d6d3aab7bd3479be9779a22 | |
parent | 5931662b1ab7c15b5947798b5292b5c7a3ffb17a (diff) | |
download | vyatta-cfg-3a9e2224b336e2ac7ac8773b742552cbf68dae37.tar.gz vyatta-cfg-3a9e2224b336e2ac7ac8773b742552cbf68dae37.zip |
Add another check for out_stream now all refrences are validated before writing to it
-rw-r--r-- | src/cli_new.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index 6ba3910..3498025 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -2243,7 +2243,7 @@ system_out(char *cmd, const char *prepend_msg, boolean eloc) * underlying problem. (heck, even (1) is fugly as hell, but * right now it's simply not feasible to look into it.) */ - if (prepend) { + if (prepend && out_stream != NULL) { prepend = 0; /* XXX follow original behavior */ |