summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util.c b/util.c
index d0444c5..b4b163a 100644
--- a/util.c
+++ b/util.c
@@ -1,5 +1,4 @@
-/*
- * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
+/* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include "dmenu.h"
@@ -22,6 +21,7 @@ badmalloc(unsigned int size) {
void *
emalloc(unsigned int size) {
void *res = malloc(size);
+
if(!res)
badmalloc(size);
return res;
@@ -40,6 +40,7 @@ eprint(const char *errstr, ...) {
char *
estrdup(const char *str) {
void *res = strdup(str);
+
if(!res)
badmalloc(strlen(str));
return res;
deletions'>-1/+0 2025-07-23Remove CI/CD pipeline files - moving to separate PRGravatar Andrew D. France 4-185/+0 2025-07-23make was improperly being called inside the container on a project that is ↵Gravatar Andrew D. France 2-5/+9 missing its dependencies in the lib/ directory, leading to a 'No rule to make target' error: updated Dockerfile to remove the submodule command at: ln:29: and: Jenkinsfile will use the git submodule sync command. This will ensure the agent's repository is correctly configured before fetching the submodule code: at: ln:9-17 2025-07-23Attempt to patch CI pipeline: Dockerfile will now be selfcontained, and ↵Gravatar Andrew D. France 2-32/+43 thus, will init .gitmodules: ln:10 removed from original Jenkinsfile 2025-07-23CRITICAL ISSUE: Deleting lib/ files has introduced the issue of actually ↵Gravatar Andrew D. France 1-38/+25 automating the module initialization via jenkins: DEBUG VERSION: Jenkinsfile 2025-07-23CRITICAL FOR TESTING: This copies the entire Jenkins workspace (including ↵Gravatar Andrew D. France 2-9/+7 the populated lib/ directory from the submodules) into the running container, ensuring all the required source files are available for the build process.