kxgettext.c (e82abaeb7f2a0833fccf90460c48b9f2100258f8) | kxgettext.c (e91610da7c8a9fe42f3e5a75f06c3d1a0cb5f815) |
---|---|
1/* 2 * Arnaldo Carvalho de Melo <acme@conectiva.com.br>, 2005 3 * 4 * Released under the terms of the GNU GPL v2.0 5 */ 6 7#include <stdlib.h> 8#include <string.h> --- 87 unchanged lines hidden (view full) --- 96 97 if (self == NULL) 98 goto out; 99 100 self->files = file_line__new(file, lineno); 101 if (self->files == NULL) 102 goto out_fail; 103 | 1/* 2 * Arnaldo Carvalho de Melo <acme@conectiva.com.br>, 2005 3 * 4 * Released under the terms of the GNU GPL v2.0 5 */ 6 7#include <stdlib.h> 8#include <string.h> --- 87 unchanged lines hidden (view full) --- 96 97 if (self == NULL) 98 goto out; 99 100 self->files = file_line__new(file, lineno); 101 if (self->files == NULL) 102 goto out_fail; 103 |
104 self->msg = strdup(msg); | 104 self->msg = xstrdup(msg); |
105 if (self->msg == NULL) 106 goto out_fail_msg; 107 108 self->option = option; 109 self->next = NULL; 110out: 111 return self; 112out_fail_msg: --- 123 unchanged lines hidden --- | 105 if (self->msg == NULL) 106 goto out_fail_msg; 107 108 self->option = option; 109 self->next = NULL; 110out: 111 return self; 112out_fail_msg: --- 123 unchanged lines hidden --- |