]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/simple_mp/mp_commands.c
lib: fix various compilation warnings
[dpdk.git] / examples / multi_process / simple_mp / mp_commands.c
index a8336095e2c0f7b4d03e7cd16dbcba410094e325..146999187964a74474946b8605b3142c082799e5 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without 
@@ -75,7 +75,7 @@ static void cmd_send_parsed(void *parsed_result,
                __attribute__((unused)) struct cmdline *cl,
                __attribute__((unused)) void *data)
 {
-       void *msg;
+       void *msg = NULL;
        struct cmd_send_result *res = parsed_result;
 
        if (rte_mempool_get(message_pool, &msg) < 0)