Permalink
Browse files

Can't use things on the stack after the function returns.

  • Loading branch information...
Caleb James DeLisle
Caleb James DeLisle committed Jun 14, 2012
1 parent 6c4abc8 commit d663b8980265623514628e30e09d784cf81acd33
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/testframework/AdminTestFramework.c
@@ -41,7 +41,7 @@ struct AdminTestFramework* AdminTestFramework_setUp()
struct event_base* eventBase = event_base_new();
- String* password = String_CONST("abcdefg12345");
+ String* password = String_new("abcdefg12345", alloc);
struct Admin* admin =
Admin_new(&addr, addrLen, password, NULL, eventBase, AbortHandler_INSTANCE, logger, alloc);

0 comments on commit d663b89

Please sign in to comment.