diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2018-08-13 14:56:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-13 14:56:56 -0400 |
| commit | cd22c8ca74597aa27cb11dd28b613d53c0a36abe (patch) | |
| tree | 3e51217c34b49df896e84bf63f80d65a5c5a270d /lib/command.c | |
| parent | 5487152318c7f56867a027f7214c849f6fb23e5c (diff) | |
| parent | e8c8f2e064c674d1c0935aaf04091c97e117c62f (diff) | |
Merge pull request #2820 from opensourcerouting/err-prep
remove alloc return value checks + minor babeld cleanup
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 0bf856f248..a98654dd23 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2409,11 +2409,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 |
