From e87af9011ae71800443dda6983bf408a22552721 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Thu, 22 Sep 2011 05:52:28 +0000 Subject: [PATCH] fs_cli: fix misplaced assert --- libs/esl/fs_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index ecc40f37fd..f1b8ba38ce 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -1236,10 +1236,10 @@ int main(int argc, char *argv[]) #endif if (count > 1 && !esl_strlen_zero(line)) { char *p, *cmd = strdup(line); + assert(cmd); if ((p = strrchr(cmd, '\r')) || (p = strrchr(cmd, '\n'))) { *p = '\0'; } - assert(cmd); #ifdef HAVE_EDITLINE history(myhistory, &ev, H_ENTER, line); #endif