Mercurial > emacs
comparison src/sunfns.c @ 81278:5770b716f5aa
(sel_read): Use empty_unibyte_string.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 08 Jun 2007 20:07:44 +0000 |
parents | 3d45362f1d38 |
children | b98604865ea0 e9f94688a064 |
comparison
equal
deleted
inserted
replaced
81277:b65a4afd46bd | 81278:5770b716f5aa |
---|---|
285 FILE *file; | 285 FILE *file; |
286 { | 286 { |
287 register int i, n; | 287 register int i, n; |
288 register char *cp; | 288 register char *cp; |
289 | 289 |
290 Current_Selection = make_string ("", 0); | 290 Current_Selection = empty_unibyte_string; |
291 if (sel->sel_items <= 0) | 291 if (sel->sel_items <= 0) |
292 return (0); | 292 return (0); |
293 cp = (char *) malloc(sel->sel_items); | 293 cp = (char *) malloc(sel->sel_items); |
294 if (cp == (char *)0) { | 294 if (cp == (char *)0) { |
295 error("malloc failed in sel_read"); | 295 error("malloc failed in sel_read"); |