diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-14 08:16:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-14 08:16:10 -0400 |
| commit | d6853655b597e041b24a2b8d9367eea04d666c69 (patch) | |
| tree | bcaf438322b7934b1a1a77f0800271a1b77f4b0b /lib/command.c | |
| parent | 64dc4b2d7a810566f898c2f7a8d4264f1c341904 (diff) | |
| parent | 4354a8052c1c91597151c67263afdfcfc0ca98ba (diff) | |
Merge branch 'master' into bfd-final
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/command.c b/lib/command.c index 884e477299..7eda239ee4 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2420,11 +2420,7 @@ static int set_log_file(struct vty *vty, const char *fname, int loglevel) return CMD_WARNING_CONFIG_FAILED; } - if ((p = XMALLOC(MTYPE_TMP, strlen(cwd) + strlen(fname) + 2)) - == NULL) { - zlog_err("config_log_file: Unable to alloc mem!"); - return CMD_WARNING_CONFIG_FAILED; - } + p = XMALLOC(MTYPE_TMP, strlen(cwd) + strlen(fname) + 2); sprintf(p, "%s/%s", cwd, fname); fullpath = p; } else |
