summaryrefslogtreecommitdiff
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-11-19 21:06:14 +0100
committerBoris Faure <billiob@gmail.com>2015-11-19 21:06:14 +0100
commit8190ddd60557b7f43a71e890f17cbaf1b99c1ac8 (patch)
tree447732fbd05230852c1a45bcc63c1c2d761970d5 /src/bin/options_font.c
parenta29dbe45a78d44a31f51ca770d6614a69e2e8cf6 (diff)
options_font: fix CID 1339833
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 19ade5a..1455bbf 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -433,6 +433,7 @@ options_font(Evas_Object *opbox, Evas_Object *term)
433 { 433 {
434 char *s; 434 char *s;
435 f = calloc(1, sizeof(Font)); 435 f = calloc(1, sizeof(Font));
436 if (!f) break;
436 f->full_name = eina_stringshare_add(file); 437 f->full_name = eina_stringshare_add(file);
437 s = strchr(file, '.'); 438 s = strchr(file, '.');
438 if (s != NULL) *s = '\0'; 439 if (s != NULL) *s = '\0';
@@ -474,6 +475,7 @@ options_font(Evas_Object *opbox, Evas_Object *term)
474 if (!eina_hash_find(fonthash, fname)) 475 if (!eina_hash_find(fonthash, fname))
475 { 476 {
476 f = calloc(1, sizeof(Font)); 477 f = calloc(1, sizeof(Font));
478 if (!f) break;
477 if (_parse_font_name(fname, &f->full_name, &f->pretty_name) <0) 479 if (_parse_font_name(fname, &f->full_name, &f->pretty_name) <0)
478 { 480 {
479 free(f); 481 free(f);