aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/rpm_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/rpm_extractor.c')
-rw-r--r--src/plugins/rpm_extractor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/rpm_extractor.c b/src/plugins/rpm_extractor.c
index d54e341..e1f2d62 100644
--- a/src/plugins/rpm_extractor.c
+++ b/src/plugins/rpm_extractor.c
@@ -352,8 +352,11 @@ EXTRACTOR_rpm_extract_method (struct EXTRACTOR_ExtractContext *ec)
352 uint32_t *v = rpmtdNextUint32 (p); 352 uint32_t *v = rpmtdNextUint32 (p);
353 time_t tp = (time_t) *v; 353 time_t tp = (time_t) *v;
354 354
355 ctime_r (&tp, tmp); 355 if (NULL == ctime_r (&tp, tmp))
356 tmp[strlen (tmp) - 1] = '\0'; /* eat linefeed */ 356 break;
357 if ( (strlen (tmp) > 0) &&
358 (isblank ((unsigned char) tmp[strlen(tmp)-1])) )
359 tmp[strlen (tmp) - 1] = '\0'; /* eat linefeed */
357 pthread_mutex_lock (&parg.lock); 360 pthread_mutex_lock (&parg.lock);
358 if (0 != ec->proc (ec->cls, 361 if (0 != ec->proc (ec->cls,
359 "rpm", 362 "rpm",