aboutsummaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow opening directories non-recursivelyParide Legovini2016-09-281-2/+3
|
* Fix option -q; commit d3a70a2 completely broke it; fixes issue #223Bert Münnich2015-12-281-0/+3
|
* Simplified r_mkdir()Bert Münnich2015-10-281-29/+15
|
* Revised error handlingBert Münnich2015-10-281-34/+21
| | | | | | | - Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3)
* Prefix safe allocation functions with 'e' instead of 's_'Bert Münnich2015-10-281-15/+14
|
* Removed unnecessary buffer size constantsBert Münnich2015-10-281-7/+1
|
* Use XSI realpath(3)Bert Münnich2015-10-281-68/+0
|
* Use POSIX.1-2008 getline(3)Bert Münnich2015-10-281-30/+0
|
* Removed feature test macro definitions from source filesBert Münnich2015-10-281-2/+0
|
* Removed overcautious parameter checksBert Münnich2015-10-281-12/+3
|
* Bug #165: Deletion of unnecessary null pointer checksMarkus Elfring2014-08-221-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function "free" performs input parameter validation. http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html It is therefore not needed to check a passed pointer before this function call. A corresponding update suggestion was generated by the software "Coccinelle" from the following semantic patch approach. http://coccinelle.lip6.fr/ @Remove_unnecessary_pointer_checks1@ expression x; @@ -if (x != \(0 \| NULL\)) free(x); @Remove_unnecessary_pointer_checks2@ expression x; @@ -if (x != \(0 \| NULL\)) { free(x); x = \(0 \| NULL\); -} @Remove_unnecessary_pointer_checks3@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) +if (a) free(b); @Remove_unnecessary_pointer_checks4@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) { +if (a) { free(b); b = \(0 \| NULL\); } Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
* Made argument of s_strdup constlucas82014-08-011-1/+1
|
* Create thumbnail cache dir automaticallyBert Münnich2014-06-101-9/+2
|
* Ignore dotfiles for -rBert Münnich2013-02-111-1/+1
|
* Refactored function definitions to use dangling braceBert Münnich2013-02-081-12/+24
|
* Updated/corrected license headerBert Münnich2013-02-081-13/+13
|
* Already in the year 2012Bert Münnich2012-02-151-1/+1
|
* Removed slideshow supportBert Münnich2012-02-111-9/+0
|
* Updated contact informationBert Münnich2011-10-141-1/+1
|
* Strictly adhere to ANSI-C standardBert Münnich2011-10-131-1/+1
|
* Use void for empty argument listsBert Münnich2011-10-121-1/+1
|
* Made all conditionals more preciseBert Münnich2011-09-291-45/+47
|
* Transformed function macros in util.h to inline functionsBert Münnich2011-09-291-1/+1
|
* Added STREQ macroBert Münnich2011-09-261-1/+1
|
* make use of EXIT_ macrosrck2011-09-261-1/+1
|
* Added slideshow supportBert2011-09-101-2/+11
|
* Strict conformance to IEEE Std 1003.1-2001Bert2011-09-081-6/+38
|
* Avoid conflicting macrosBert2011-09-061-2/+2
|
* Reformated license headerBert2011-09-031-11/+11
|
* Data driven timeout handlingBert2011-09-021-13/+0
|
* Added support for gif animationBert2011-08-191-0/+13
|
* Corrected FSF address in license headersBert2011-08-181-7/+7
|
* Revised handling of file names & pathsBert2011-08-181-0/+11
|
* Major code refactoringBert2011-07-261-3/+5
| | | | | - Configurable key and mouse mappings in config.h - Put event handling code from main.c into events.[ch]
* Use getline instead of readlineBert2011-05-291-37/+1
|
* Refactored recursive directory util functionsBert2011-04-081-79/+99
|
* Moved read_dir_rec into util.cBert2011-04-071-0/+79
|
* Use directory structure in cache dirBert2011-04-071-0/+43
|
* Write cache file for thumbnail directly after creating itBert2011-04-071-1/+1
|
* Write thumbnail cache files on exitBert2011-04-071-1/+79
|
* Fixed empty lines in readline()Bert2011-02-151-3/+3
|
* More appropriate buffer sizesBert2011-02-141-1/+1
|
* Read filenames from stdinBert2011-02-141-1/+39
|
* Display filesize in window titleBert2011-02-031-0/+9
|
* Fixed die/warn in util.cBert2011-02-031-2/+2
|
* Refactored, new files util.[ch], C89Bert2011-02-031-0/+68