Fixed warning in astman for gcc-4.8.
authorDavid M. Lee <dlee@digium.com>
Thu, 1 Aug 2013 16:56:51 +0000 (16:56 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 1 Aug 2013 16:56:51 +0000 (16:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395984 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/astman.c

index e61ce23..6527e99 100644 (file)
@@ -737,7 +737,7 @@ static int manager_login(char *hostname)
                                        show_message("Login Failed", get_header(m, "Message"));
                                }
                        } else {
-                               memset(m, 0, sizeof(m));
+                               memset(m, 0, sizeof(*m));
                                manager_action("Login", 
                                        "Username: %s\r\n"
                                        "Secret: %s\r\n",