check right pointer

This commit is contained in:
Martijn van Brummelen
2018-10-05 23:02:19 +02:00
parent e16da663a1
commit 5912d0f57a
2 changed files with 3 additions and 2 deletions

3
README
View File

@@ -21,7 +21,8 @@ RELEASE NOTES
v0.25
- Correct J=Up K=Down in footer(Thanks PartialVolume)
- Fix segfault initialize nwipe_gui_thread (Thanks PartialVolume)
- Fix memory leaks (Thanks Partialvolume)
- Fix memory leaks (Thanks PartialVolume)
- Check right pointer (Thanks PartialVolume
v0.24
- use include values for version 0.17

View File

@@ -416,7 +416,7 @@ void *nwipe_ops2( void *ptr )
/* Allocate the array of complement characters. */
t = malloc( sizeof( char ) * u );
if( s == NULL )
if( t == NULL )
{
nwipe_perror( errno, __FUNCTION__, "malloc" );
nwipe_log( NWIPE_LOG_FATAL, "Unable to allocate the complement character array." );