diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-08-26 01:34:13 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-08-26 01:34:13 +0000 |
commit | 369e95c1df681537492ac4132fcc439a66dd7884 (patch) | |
tree | 3058d0f0bc0b6e2bfc578ce0120748c1f441c8b6 /src/e.c | |
parent | d3bb74d0299714ee4e410e52b7a14bd22d0b22c6 (diff) | |
download | eterm-369e95c1df681537492ac4132fcc439a66dd7884.tar.gz |
Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.
SVN revision: 51650
Diffstat (limited to 'src/e.c')
-rw-r--r-- | src/e.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -156,12 +156,12 @@ enl_ipc_send(char *str) unsigned short len; XEvent ev; - if (str == NULL) { + if (!str) { ASSERT(last_msg != NULL); str = last_msg; D_ENL(("Resending last message \"%s\" to Enlightenment.\n", str)); } else { - if (last_msg != NULL) { + if (last_msg) { FREE(last_msg); } last_msg = STRDUP(str); @@ -246,7 +246,7 @@ enl_ipc_get(const char *msg_data) } buff[12] = 0; blen = strlen(buff); - if (message != NULL) { + if (message) { len += blen; message = (char *) REALLOC(message, len + 1); strcat(message, buff); |