! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Return of uninitialized value on migrate-config.c
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
General

Comments

Description Mario Rugiero 2014-05-06 13:21:00 CEST
Created attachment 5478 
Patch for uninitialized 'count' variable.

migrate_config_strchr_count should initialize count disregarding if haystack is null, as it is its return value. I attach a simple fix.
Comment 1 Git Bot editbugs 2018-04-18 23:58:28 CEST
Mario Rugiero referenced this bugreport in commit a6bd44d8d4de549b06debb3a6ebb045bf3c00186

Correctly initialize return value (Bug #10873)

https://git.xfce.org/xfce/xfce4-panel/commit?id=a6bd44d8d4de549b06debb3a6ebb045bf3c00186
Comment 2 Simon Steinbeiss editbugs 2018-04-18 23:58:44 CEST
Thanks, that makes a lot of sense.

Bug #10873

Reported by:
Mario Rugiero
Reported on: 2014-05-06
Last modified on: 2018-04-18

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
Unspecified

Attachments

Additional information