From 3309ffdf8aaf1169cb57998bc771da98d306d0c1 Mon Sep 17 00:00:00 2001 From: Andy Beverley Date: Sat, 7 Sep 2013 00:20:52 +0100 Subject: [PATCH] Fix incorrect display of serial number in log if not existent --- src/nwipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nwipe.c b/src/nwipe.c index c5ab011..265f9c7 100644 --- a/src/nwipe.c +++ b/src/nwipe.c @@ -288,7 +288,7 @@ int main( int argc, char** argv ) */ /* Print serial number of device if it exists. */ - if ( c2[i]->identity.serial_no ) { + if ( strlen(c2[i]->identity.serial_no) ) { nwipe_log( NWIPE_LOG_INFO, "Device %s has serial number %s", c2[i]->device_name, c2[i]->identity.serial_no); }