Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: libexif/sources/libexif/canon/mnote-canon-tag.c

Issue 10792004: Fetch libexif 0.6.21 to include the security fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* mnote-canon-tag.c 1 /* mnote-canon-tag.c
2 * 2 *
3 * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net> 3 * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 else 154 else
155 return NULL; 155 return NULL;
156 } 156 }
157 157
158 const char * 158 const char *
159 mnote_canon_tag_get_title (MnoteCanonTag t) 159 mnote_canon_tag_get_title (MnoteCanonTag t)
160 { 160 {
161 unsigned int i; 161 unsigned int i;
162 162
163 #if defined(BIND_TEXTDOMAIN) 163 #if defined(BIND_TEXTDOMAIN)
164 » bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); 164 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
165 #endif 165 #endif
166 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) 166 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
167 if (table[i].tag == t) return (_(table[i].title)); 167 if (table[i].tag == t) return (_(table[i].title));
168 return NULL; 168 return NULL;
169 } 169 }
170 170
171 const char * 171 const char *
172 mnote_canon_tag_get_title_sub (MnoteCanonTag t, unsigned int s, ExifDataOption o ) 172 mnote_canon_tag_get_title_sub (MnoteCanonTag t, unsigned int s, ExifDataOption o )
173 { 173 {
174 unsigned int i; 174 unsigned int i;
(...skipping 12 matching lines...) Expand all
187 return NULL; 187 return NULL;
188 } 188 }
189 189
190 const char * 190 const char *
191 mnote_canon_tag_get_description (MnoteCanonTag t) 191 mnote_canon_tag_get_description (MnoteCanonTag t)
192 { 192 {
193 unsigned int i; 193 unsigned int i;
194 194
195 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) 195 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
196 if (table[i].tag == t) { 196 if (table[i].tag == t) {
197 » » » if (!*table[i].description) 197 » » » if (!table[i].description || !*table[i].description)
198 return ""; 198 return "";
199 #if defined(BIND_TEXTDOMAIN) 199 #if defined(BIND_TEXTDOMAIN)
200 » bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); 200 » » » bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
201 #endif 201 #endif
202 return _(table[i].description); 202 return _(table[i].description);
203 } 203 }
204 return NULL; 204 return NULL;
205 } 205 }
OLDNEW
« no previous file with comments | « libexif/sources/libexif/canon/mnote-canon-entry.c ('k') | libexif/sources/libexif/exif-byte-order.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698