kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=077c50513df6a779a17a22e6a577d3c68c19e6f4
commit 077c50513df6a779a17a22e6a577d3c68c19e6f4 Author: Kim Woelders <[email protected]> Date: Sun Feb 10 06:04:52 2019 +0100 Forgot indent --- src/xprop.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xprop.c b/src/xprop.c index 7b0eb78d..29eea50b 100644 --- a/src/xprop.c +++ b/src/xprop.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2018 Kim Woelders + * Copyright (C) 2004-2019 Kim Woelders * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -115,6 +115,7 @@ _ex_window_prop32_set(EX_Window win, EX_Atom atom, int i; pl = EMALLOC(unsigned long, num); + if (!pl) return; for (i = 0; i < num; i++) @@ -170,6 +171,7 @@ _ex_window_prop32_list_get(EX_Window win, EX_Atom atom, { num = (int)num_ret; lst = EMALLOC(unsigned int, num); + *val = lst; if (!lst) return 0; @@ -271,6 +273,7 @@ ex_window_prop_string_list_get(EX_Window win, EX_Atom atom, char ***plst) if (items > 0) { pstr = EMALLOC(char *, items); + if (!pstr) goto done; for (i = 0; i < items; i++) @@ -286,6 +289,7 @@ ex_window_prop_string_list_get(EX_Window win, EX_Atom atom, char ***plst) /* Bad format or XmbTextPropertyToTextList failed - Now what? */ items = 1; pstr = EMALLOC(char *, 1); + if (!pstr) goto done; pstr[0] = (xtp.value) ? Estrdup((char *)xtp.value) : NULL; @@ -372,6 +376,7 @@ _ex_window_prop_string_utf8_get(EX_Window win, EX_Atom atom) if (prop_ret && num_ret > 0 && format_ret == 8) { str = EMALLOC(char, num_ret + 1); + if (str) { memcpy(str, prop_ret, num_ret); @@ -876,6 +881,7 @@ ex_netwm_desk_names_set(EX_Window root, const char **names, l = strlen(s) + 1; buf_r = EREALLOC(char, buf, len + l); + if (!buf_r) goto done; buf = buf_r; --
