aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsxwidget.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsxwidget.m')
-rw-r--r--src/nsxwidget.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsxwidget.m b/src/nsxwidget.m
index 370abee395c..e81ca7fc0cb 100644
--- a/src/nsxwidget.m
+++ b/src/nsxwidget.m
@@ -388,7 +388,7 @@ js_to_lisp (id value)
388 NSArray *nsarr = (NSArray *) value; 388 NSArray *nsarr = (NSArray *) value;
389 EMACS_INT n = nsarr.count; 389 EMACS_INT n = nsarr.count;
390 Lisp_Object obj; 390 Lisp_Object obj;
391 struct Lisp_Vector *p = allocate_vector (n); 391 struct Lisp_Vector *p = allocate_nil_vector (n);
392 392
393 for (ptrdiff_t i = 0; i < n; ++i) 393 for (ptrdiff_t i = 0; i < n; ++i)
394 p->contents[i] = js_to_lisp ([nsarr objectAtIndex:i]); 394 p->contents[i] = js_to_lisp ([nsarr objectAtIndex:i]);
@@ -401,7 +401,7 @@ js_to_lisp (id value)
401 NSArray *keys = nsdict.allKeys; 401 NSArray *keys = nsdict.allKeys;
402 ptrdiff_t n = keys.count; 402 ptrdiff_t n = keys.count;
403 Lisp_Object obj; 403 Lisp_Object obj;
404 struct Lisp_Vector *p = allocate_vector (n); 404 struct Lisp_Vector *p = allocate_nil_vector (n);
405 405
406 for (ptrdiff_t i = 0; i < n; ++i) 406 for (ptrdiff_t i = 0; i < n; ++i)
407 { 407 {