]> granicus.if.org Git - yasm/commitdiff
yasm_vp_new() should return its newly created structure!
authorPeter Johnson <peter@tortall.net>
Sun, 16 Mar 2003 00:02:15 +0000 (00:02 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 16 Mar 2003 00:02:15 +0000 (00:02 -0000)
svn path=/trunk/yasm/; revision=861

libyasm/valparam.c

index 4c27382b38a367e860dc488905f8c79456ceaf1c..92faf8e755b22868b7e3918f2dda836df1079ba7 100644 (file)
@@ -37,6 +37,7 @@ yasm_vp_new(/*@keep@*/ const char *v, /*@keep@*/ yasm_expr *p)
     yasm_valparam *r = yasm_xmalloc(sizeof(yasm_valparam));
     r->val = v;
     r->param = p;
+    return r;
 }
 
 void